Merge pull request #114789 from AndersonTorres/new-vms-empire

vms-empire: 1.15 -> 1.16

authored by Sandro and committed by GitHub f15a61d4 e80e7881

+36 -15
+36 -15
pkgs/games/vms-empire/default.nix
··· 1 - { lib, stdenv, fetchurl, ncurses, xmlto }: 2 3 stdenv.mkDerivation rec { 4 pname = "vms-empire"; 5 - version = "1.15"; 6 7 src = fetchurl{ 8 - url = "http://www.catb.org/~esr/vms-empire/${pname}-${version}.tar.gz"; 9 - sha256 = "1vcpglkimcljb8s1dp6lzr5a0vbfxmh6xf37cmb8rf9wc3pghgn3"; 10 }; 11 12 - buildInputs = 13 - [ ncurses xmlto ]; 14 15 - patchPhase = '' 16 - sed -i -e 's|^install: empire\.6 uninstall|install: empire.6|' -e 's|usr/||g' Makefile 17 ''; 18 19 hardeningDisable = [ "format" ]; 20 21 - makeFlags = [ "DESTDIR=$(out)" ]; 22 - 23 meta = with lib; { 24 description = "The ancestor of all expand/explore/exploit/exterminate games"; 25 longDescription = '' 26 Empire is a simulation of a full-scale war between two emperors, the ··· 30 expand/explore/exploit/exterminate games, including Civilization and 31 Master of Orion. 32 ''; 33 - homepage = "http://catb.org/~esr/vms-empire/"; 34 - license = licenses.gpl2; 35 maintainers = [ maintainers.AndersonTorres ]; 36 - platforms = platforms.linux; 37 }; 38 } 39 - 40 -
··· 1 + { lib 2 + , stdenv 3 + , fetchurl 4 + , ncurses 5 + , xmlto 6 + , docbook_xml_dtd_44 7 + , docbook_xsl 8 + , installShellFiles 9 + }: 10 11 stdenv.mkDerivation rec { 12 pname = "vms-empire"; 13 + version = "1.16"; 14 15 src = fetchurl{ 16 + url = "http://www.catb.org/~esr/${pname}/${pname}-${version}.tar.gz"; 17 + hash = "sha256-XETIbt/qVU+TpamPc2WQynqqUuZqkTUnItBprjg+gPk="; 18 }; 19 20 + nativeBuildInputs = [ installShellFiles ]; 21 + buildInputs = [ 22 + ncurses 23 + xmlto 24 + docbook_xml_dtd_44 25 + docbook_xsl 26 + ]; 27 + 28 + postBuild = '' 29 + xmlto man vms-empire.xml 30 + xmlto html-nochunks vms-empire.xml 31 + ''; 32 33 + installPhase = '' 34 + runHook preInstall 35 + install -D vms-empire -t ${placeholder "out"}/bin/ 36 + install -D vms-empire.html -t ${placeholder "out"}/share/doc/${pname}/ 37 + install -D vms-empire.desktop -t ${placeholder "out"}/share/applications/ 38 + install -D vms-empire.png -t ${placeholder "out"}/share/icons/hicolor/48x48/apps/ 39 + install -D vms-empire.xml -t ${placeholder "out"}/share/appdata/ 40 + installManPage empire.6 41 + runHook postInstall 42 ''; 43 44 hardeningDisable = [ "format" ]; 45 46 meta = with lib; { 47 + homepage = "http://catb.org/~esr/vms-empire/"; 48 description = "The ancestor of all expand/explore/exploit/exterminate games"; 49 longDescription = '' 50 Empire is a simulation of a full-scale war between two emperors, the ··· 54 expand/explore/exploit/exterminate games, including Civilization and 55 Master of Orion. 56 ''; 57 + license = licenses.gpl2Only; 58 maintainers = [ maintainers.AndersonTorres ]; 59 + platforms = platforms.unix; 60 }; 61 }