summary refs log tree commit diff
path: root/pkgs/games/frotz/default.nix
blob: 40b6748693d196fafc98141bb7ee7a6e138a04d8 (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
{ stdenv, fetchFromGitHub, ncurses }:

stdenv.mkDerivation rec {
  version = "2.44";
  pname = "frotz";

  src = fetchFromGitHub {
    owner = "DavidGriffith";
    repo = "frotz";
    rev = version;
    sha256 = "0gjkk4gxzqmxfdirrz2lr0bms6l9fc31vkmlywigkbdlh8wxgypp";
  };

  makeFlags = [ "CC=cc" "PREFIX=$(out)" "CURSES=-lncurses" ];

  buildInputs = [ ncurses ];

  meta = with stdenv.lib; {
    homepage = "http://frotz.sourceforge.net/";
    description = "A z-machine interpreter for Infocom games and other interactive fiction.";
    platforms = platforms.unix;
    maintainers = [ maintainers.nicknovitski ];
    license = licenses.gpl2;
  };
}