summary refs log tree commit diff
path: root/pkgs/games/vms-empire
diff options
context:
space:
mode:
authorAndersonTorres <torres.anderson.85@gmail.com>2017-05-21 18:56:02 -0300
committerAndersonTorres <torres.anderson.85@gmail.com>2017-05-21 18:57:12 -0300
commit8f8465113200d6e729ccb33494902fa34194dca6 (patch)
treee5a5d38702dc1d3d2f970bc62ab3b05361b08ca0 /pkgs/games/vms-empire
parent4e88906f41f77c8a716dff2e4da1b2b3b0c29fd3 (diff)
downloadnixpkgs-8f8465113200d6e729ccb33494902fa34194dca6.tar
nixpkgs-8f8465113200d6e729ccb33494902fa34194dca6.tar.gz
nixpkgs-8f8465113200d6e729ccb33494902fa34194dca6.tar.bz2
nixpkgs-8f8465113200d6e729ccb33494902fa34194dca6.tar.lz
nixpkgs-8f8465113200d6e729ccb33494902fa34194dca6.tar.xz
nixpkgs-8f8465113200d6e729ccb33494902fa34194dca6.tar.zst
nixpkgs-8f8465113200d6e729ccb33494902fa34194dca6.zip
vms-empire: init at 1.14
Diffstat (limited to 'pkgs/games/vms-empire')
-rw-r--r--pkgs/games/vms-empire/default.nix42
1 files changed, 42 insertions, 0 deletions
diff --git a/pkgs/games/vms-empire/default.nix b/pkgs/games/vms-empire/default.nix
new file mode 100644
index 00000000000..91f77277d9e
--- /dev/null
+++ b/pkgs/games/vms-empire/default.nix
@@ -0,0 +1,42 @@
+{ stdenv, fetchurl, ncurses, xmlto }:
+
+with stdenv.lib;
+stdenv.mkDerivation rec{
+
+  name = "vms-empire-${version}";
+  version = "1.14";
+
+  src = fetchurl{
+    url = "http://www.catb.org/~esr/vms-empire/${name}.tar.gz";
+    sha256 = "0cymzhivvaahgqz0p11w25a710ls4w0jhyqj789jas5s07nvd890";
+  };
+
+  buildInputs =
+  [ ncurses xmlto ];
+
+  patchPhase = ''
+    sed -i -e 's|^install: empire\.6 uninstall|install: empire.6|' -e 's|usr/||g' Makefile
+  '';
+
+  hardeningDisable = [ "format" ];
+
+  makeFlags = [ "DESTDIR=$(out)" ];
+
+  meta = {
+    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.
+    '';
+    homepage = http://catb.org/~esr/vms-empire/;
+    license = licenses.gpl2;
+    maintainers = [ maintainers.AndersonTorres ];
+    platforms = platforms.linux;
+  };
+}
+
+