summary refs log tree commit diff
path: root/pkgs/games/vms-empire/default.nix
blob: 1d4545f17b14433d30861419f273a2af28d82428 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
{ stdenv, fetchurl, ncurses, xmlto }:

with stdenv.lib;
stdenv.mkDerivation rec{

  pname = "vms-empire";
  version = "1.14";

  src = fetchurl{
    url = "http://www.catb.org/~esr/vms-empire/${pname}-${version}.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;
  };
}