2020-08-01 19:11:36 +01:00
|
|
|
{ fetchFromGitLab
|
|
|
|
, libao
|
|
|
|
, libmodplug
|
|
|
|
, libsamplerate
|
|
|
|
, libsndfile
|
|
|
|
, libvorbis
|
|
|
|
, ncurses
|
|
|
|
, stdenv }:
|
2016-10-16 11:19:03 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2020-08-01 19:11:36 +01:00
|
|
|
version = "2.52";
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "frotz";
|
2016-10-16 11:19:03 +01:00
|
|
|
|
2020-08-01 19:11:36 +01:00
|
|
|
src = fetchFromGitLab {
|
|
|
|
domain = "gitlab.com";
|
2016-10-16 11:19:03 +01:00
|
|
|
owner = "DavidGriffith";
|
|
|
|
repo = "frotz";
|
|
|
|
rev = version;
|
2020-08-01 19:11:36 +01:00
|
|
|
sha256 = "11ca1dz31b7s5vxjqncwjwmbbcr2m5v2rxjn49g4gnvwd6mqw48y";
|
2016-10-16 11:19:03 +01:00
|
|
|
};
|
|
|
|
|
2020-08-01 19:11:36 +01:00
|
|
|
buildInputs = [ libao libmodplug libsamplerate libsndfile libvorbis ncurses ];
|
|
|
|
preBuild = ''
|
|
|
|
makeFlagsArray+=(
|
|
|
|
CC="cc"
|
|
|
|
CFLAGS="-D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600"
|
|
|
|
LDFLAGS="-lncursesw -ltinfo"
|
|
|
|
)
|
|
|
|
'';
|
|
|
|
installFlags = [ "PREFIX=$(out)" ];
|
2016-10-16 11:19:03 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2020-08-01 19:11:36 +01:00
|
|
|
homepage = "https://davidgriffith.gitlab.io/frotz/";
|
|
|
|
changelog = "https://gitlab.com/DavidGriffith/frotz/-/raw/${version}/NEWS";
|
2020-10-11 06:55:05 +01:00
|
|
|
description = "A z-machine interpreter for Infocom games and other interactive fiction";
|
2016-10-16 11:19:03 +01:00
|
|
|
platforms = platforms.unix;
|
2020-08-01 19:11:36 +01:00
|
|
|
maintainers = with maintainers; [ nicknovitski ddelabru ];
|
2016-10-16 11:19:03 +01:00
|
|
|
license = licenses.gpl2;
|
|
|
|
};
|
|
|
|
}
|