2021-03-09 03:18:52 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, ncurses
|
|
|
|
, xmlto
|
|
|
|
, docbook_xml_dtd_44
|
|
|
|
, docbook_xsl
|
|
|
|
, installShellFiles
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-06-18 07:06:33 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "vms-empire";
|
2021-03-09 03:18:52 +00:00
|
|
|
version = "1.16";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl{
|
2021-03-09 03:18:52 +00:00
|
|
|
url = "http://www.catb.org/~esr/${pname}/${pname}-${version}.tar.gz";
|
|
|
|
hash = "sha256-XETIbt/qVU+TpamPc2WQynqqUuZqkTUnItBprjg+gPk=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-03-09 03:18:52 +00:00
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
buildInputs = [
|
|
|
|
ncurses
|
|
|
|
xmlto
|
|
|
|
docbook_xml_dtd_44
|
|
|
|
docbook_xsl
|
|
|
|
];
|
|
|
|
|
|
|
|
postBuild = ''
|
|
|
|
xmlto man vms-empire.xml
|
|
|
|
xmlto html-nochunks vms-empire.xml
|
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-03-09 03:18:52 +00:00
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
install -D vms-empire -t ${placeholder "out"}/bin/
|
|
|
|
install -D vms-empire.html -t ${placeholder "out"}/share/doc/${pname}/
|
|
|
|
install -D vms-empire.desktop -t ${placeholder "out"}/share/applications/
|
|
|
|
install -D vms-empire.png -t ${placeholder "out"}/share/icons/hicolor/48x48/apps/
|
|
|
|
install -D vms-empire.xml -t ${placeholder "out"}/share/appdata/
|
|
|
|
installManPage empire.6
|
|
|
|
runHook postInstall
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
hardeningDisable = [ "format" ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2021-03-09 03:18:52 +00:00
|
|
|
homepage = "http://catb.org/~esr/vms-empire/";
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "The ancestor of all expand/explore/exploit/exterminate games";
|
|
|
|
longDescription = ''
|
|
|
|
Empire is a simulation of a full-scale war between two emperors, the
|
|
|
|
computer and you. Naturally, there is only room for one, so the object of
|
|
|
|
the game is to destroy the other. The computer plays by the same rules
|
|
|
|
that you do. This game was ancestral to all later
|
|
|
|
expand/explore/exploit/exterminate games, including Civilization and
|
|
|
|
Master of Orion.
|
|
|
|
'';
|
2021-03-09 03:18:52 +00:00
|
|
|
license = licenses.gpl2Only;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = [ maintainers.AndersonTorres ];
|
2021-03-09 03:18:52 +00:00
|
|
|
platforms = platforms.unix;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|