lol

Merge pull request #294739 from TomaSajt/gogui

gogui: make deterministic and clean up

authored by

Peder Bergebakken Sundt and committed by
GitHub
b8af6d81 aa7c6387

+23 -22
+23 -22
pkgs/games/gogui/default.nix
··· 1 - { ant 2 , docbook-xsl-ns 3 , docbook_xml_dtd_42 4 - , fetchFromGitHub 5 , imagemagick 6 - , lib 7 , libxslt 8 , makeWrapper 9 - , openjdk 10 - , stdenv 11 }: 12 13 - let 14 - version = "1.5.4a"; 15 - in stdenv.mkDerivation { 16 pname = "gogui"; 17 - inherit version; 18 19 src = fetchFromGitHub { 20 owner = "Remi-Coulom"; 21 repo = "gogui"; 22 - rev = "v${version}"; 23 hash = "sha256-UFhOk2mAnTtxfwEOHquN64YDCRq7nNUqZAPQf77MEEw="; 24 }; 25 26 nativeBuildInputs = [ 27 - makeWrapper 28 ant 29 - ]; 30 - 31 - buildInputs = [ 32 docbook-xsl-ns 33 imagemagick 34 libxslt 35 - openjdk 36 ]; 37 38 buildPhase = '' 39 runHook preBuild 40 41 substituteInPlace doc/manual/xml/book.xml \ 42 - --replace http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd \ 43 ${docbook_xml_dtd_42}/xml/dtd/docbook/docbookx.dtd 44 substituteInPlace doc/manual/xml/manpages.xml \ 45 - --replace http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd \ 46 ${docbook_xml_dtd_42}/xml/dtd/docbook/docbookx.dtd 47 48 # generate required gui images from svg ··· 75 ln -s $out/share/doc/gogui/manual/man $out/share/man/man1 76 77 # copy programs 78 - mv -vi {bin,lib} $out/ 79 80 # wrap programs 81 for x in $out/bin/*; do 82 - wrapProgram $x --prefix PATH ":" ${openjdk}/bin --set GOGUI_JAVA_HOME ${openjdk} 83 done 84 85 runHook postInstall 86 ''; 87 88 meta = { 89 - maintainers = [ lib.maintainers.cleverca22 lib.maintainers.omnipotententity]; 90 description = "A graphical user interface to programs that play the board game Go and support the Go Text Protocol such as GNU Go"; 91 homepage = "https://github.com/Remi-Coulom/gogui"; 92 platforms = lib.platforms.unix; 93 - license = lib.licenses.gpl3; 94 }; 95 - }
··· 1 + { lib 2 + , stdenv 3 + , fetchFromGitHub 4 + , ant 5 + , jdk 6 + , jre 7 , docbook-xsl-ns 8 , docbook_xml_dtd_42 9 , imagemagick 10 , libxslt 11 + , stripJavaArchivesHook 12 , makeWrapper 13 }: 14 15 + stdenv.mkDerivation (finalAttrs: { 16 pname = "gogui"; 17 + version = "1.5.4a"; 18 19 src = fetchFromGitHub { 20 owner = "Remi-Coulom"; 21 repo = "gogui"; 22 + rev = "v${finalAttrs.version}"; 23 hash = "sha256-UFhOk2mAnTtxfwEOHquN64YDCRq7nNUqZAPQf77MEEw="; 24 }; 25 26 nativeBuildInputs = [ 27 ant 28 + jdk 29 docbook-xsl-ns 30 imagemagick 31 libxslt 32 + stripJavaArchivesHook 33 + makeWrapper 34 ]; 35 36 buildPhase = '' 37 runHook preBuild 38 39 substituteInPlace doc/manual/xml/book.xml \ 40 + --replace-fail http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd \ 41 ${docbook_xml_dtd_42}/xml/dtd/docbook/docbookx.dtd 42 substituteInPlace doc/manual/xml/manpages.xml \ 43 + --replace-fail http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd \ 44 ${docbook_xml_dtd_42}/xml/dtd/docbook/docbookx.dtd 45 46 # generate required gui images from svg ··· 73 ln -s $out/share/doc/gogui/manual/man $out/share/man/man1 74 75 # copy programs 76 + mv -vi bin lib $out/ 77 78 # wrap programs 79 for x in $out/bin/*; do 80 + wrapProgram $x \ 81 + --prefix PATH : ${jre}/bin \ 82 + --set GOGUI_JAVA_HOME ${jre} 83 done 84 85 runHook postInstall 86 ''; 87 88 meta = { 89 description = "A graphical user interface to programs that play the board game Go and support the Go Text Protocol such as GNU Go"; 90 homepage = "https://github.com/Remi-Coulom/gogui"; 91 + license = lib.licenses.gpl3Plus; 92 + mainProgram = "gogui"; 93 + maintainers = with lib.maintainers; [ cleverca22 omnipotententity ]; 94 platforms = lib.platforms.unix; 95 }; 96 + })