2021-03-01 23:04:38 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, ncurses
|
|
|
|
, xmlto
|
|
|
|
, docbook_xml_dtd_44
|
|
|
|
, docbook_xsl
|
|
|
|
, installShellFiles
|
|
|
|
}:
|
2017-05-21 21:56:02 +00:00
|
|
|
|
2020-06-07 21:11:08 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "vms-empire";
|
2021-03-01 23:04:38 +00:00
|
|
|
version = "1.16";
|
2017-05-21 21:56:02 +00:00
|
|
|
|
|
|
|
src = fetchurl{
|
2021-03-01 23:04:38 +00:00
|
|
|
url = "http://www.catb.org/~esr/${pname}/${pname}-${version}.tar.gz";
|
|
|
|
hash = "sha256-XETIbt/qVU+TpamPc2WQynqqUuZqkTUnItBprjg+gPk=";
|
2017-05-21 21:56:02 +00:00
|
|
|
};
|
|
|
|
|
2021-03-01 23:04:38 +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
|
|
|
|
'';
|
2017-05-21 21:56:02 +00:00
|
|
|
|
2021-03-01 23:04:38 +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
|
2017-05-21 21:56:02 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
hardeningDisable = [ "format" ];
|
|
|
|
|
2021-01-15 04:31:39 +00:00
|
|
|
meta = with lib; {
|
2021-03-01 23:04:38 +00:00
|
|
|
homepage = "http://catb.org/~esr/vms-empire/";
|
2017-05-21 21:56:02 +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-01 23:04:38 +00:00
|
|
|
license = licenses.gpl2Only;
|
2017-05-21 21:56:02 +00:00
|
|
|
maintainers = [ maintainers.AndersonTorres ];
|
2021-03-01 23:04:38 +00:00
|
|
|
platforms = platforms.unix;
|
2017-05-21 21:56:02 +00:00
|
|
|
};
|
|
|
|
}
|