1 { lib, stdenv, fetchFromGitHub, runCommand
7 gcs = fetchFromGitHub {
8 owner = "richardwilkes";
11 sha256 = "0k8am8vfwls5s2z4zj1p1aqy8gapn5vbr9zy66s5g048ch8ah1hm";
13 appleStubs = fetchFromGitHub {
14 owner = "richardwilkes";
17 sha256 = "0m1qw30b19s04hj7nch1mbvv5s698g5dr1d1r7r07ykvk1yh7zsa";
19 toolkit = fetchFromGitHub {
20 owner = "richardwilkes";
23 sha256 = "1ciwwh0wxk3pzsj6rbggsbg3l2f741qy7yx1ca4v7vflsma84f1n";
25 library = fetchFromGitHub {
26 owner = "richardwilkes";
29 sha256 = "085jpp9mpv5kw00zds9sywmfq31mrlbrgahnwcjkx0z9i22amz4g";
31 in stdenv.mkDerivation rec {
35 src = runCommand "${pname}-${version}-src" { preferLocalBuild = true; } ''
40 cp -r ${appleStubs} apple_stubs
41 cp -r ${toolkit} toolkit
42 cp -r ${library} gcs_library
45 nativeBuildInputs = [ makeWrapper ];
46 buildInputs = [ jdk8 jre8 ant ];
61 mkdir -p $out/bin $out/share/java
63 find gcs/libraries toolkit/libraries apple_stubs/ \( -name '*.jar' -and -not -name '*-src.jar' \) -exec cp '{}' $out/share/java ';'
65 makeWrapper ${jre8}/bin/java $out/bin/gcs \
66 --set GCS_LIBRARY ${library} \
67 --add-flags "-cp $out/share/java/gcs-${version}.jar com.trollworks.gcs.app.GCS"
71 description = "A stand-alone, interactive, character sheet editor for the GURPS 4th Edition roleplaying game system";
72 homepage = "https://gurpscharactersheet.com/";
73 sourceProvenance = with sourceTypes; [
75 binaryBytecode # source bundles dependencies as jars
77 license = licenses.mpl20;
78 platforms = platforms.all;
79 maintainers = with maintainers; [];