diff options
Diffstat (limited to 'nixpkgs/pkgs/games/zoom/default.nix')
-rw-r--r-- | nixpkgs/pkgs/games/zoom/default.nix | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/games/zoom/default.nix b/nixpkgs/pkgs/games/zoom/default.nix new file mode 100644 index 000000000000..449d7ae6e2d5 --- /dev/null +++ b/nixpkgs/pkgs/games/zoom/default.nix @@ -0,0 +1,35 @@ +{ stdenv, fetchurl, perl, expat, xlibsWrapper, freetype }: + +# !!! assert freetype == xorg.freetype + +stdenv.mkDerivation rec { + name = "zoom-1.1.5"; + + src = fetchurl { + url = "https://www.logicalshift.co.uk/unix/zoom/${name}.tar.gz"; + sha256 = "1g6van7f7sg3zfcz80mncnnbccyg2hnm0hq4x558vpsm0lf7z5pj"; + }; + + buildInputs = [ perl expat xlibsWrapper freetype ]; + + NIX_CFLAGS_COMPILE = [ + # Zoom doesn't add the right directory in the include path. + "-I" (freetype + "/include/freetype2") + + # for gcc5; c11 inline semantics breaks the build + "-fgnu89-inline" + ]; + + meta = with stdenv.lib; { + description = "Player for Z-Code, TADS and HUGO stories or games"; + 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; + }; +} |