summary refs log tree commit diff
path: root/pkgs/games/zoom/default.nix
blob: cb9974580d870846e11f6e0d1a1700767679b770 (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
{ stdenv, fetchurl, perl, expat, x11, freetype }:

# !!! assert freetype == xlibs.freetype

stdenv.mkDerivation {
  name = "zoom-1.1.5";
  
  src = fetchurl {
    url = http://www.logicalshift.co.uk/unix/zoom/zoom-1.1.5.tar.gz;
    sha256 = "1g6van7f7sg3zfcz80mncnnbccyg2hnm0hq4x558vpsm0lf7z5pj";
  };
  
  buildInputs = [ perl expat x11 freetype ];
  
  # Zoom doesn't add the right directory in the include path.
  CFLAGS = [ "-I" (freetype + "/include/freetype2") ];

  meta = with stdenv.lib; {
    description = "Player for Z-Code, TADS and HUGO stories or games, usually text adventures ('interactive fiction')";
    longDescription = ''
      Zoom is a player for Z-Code, TADS and HUGO stories or games. These are
      usually text adventures ('interactive fiction'), and were first created
      by Infocom with the Zork series of games. Throughout the 80's, Infocom
      released many interactive fiction stories before their ambitions to enter
      the database market finally brought them low.
    '';
    license = licenses.gpl3;
    platforms = platforms.linux;
  };
}