2020-08-01 20:11:36 +02:00
|
|
|
{ fetchFromGitLab
|
|
|
|
, libao
|
|
|
|
, libmodplug
|
|
|
|
, libsamplerate
|
|
|
|
, libsndfile
|
|
|
|
, libvorbis
|
|
|
|
, ncurses
|
2021-01-11 08:54:33 +01:00
|
|
|
, lib, stdenv }:
|
2016-10-16 12:19:03 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-03-03 10:28:44 +01:00
|
|
|
version = "2.53";
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "frotz";
|
2016-10-16 12:19:03 +02:00
|
|
|
|
2020-08-01 20:11:36 +02:00
|
|
|
src = fetchFromGitLab {
|
|
|
|
domain = "gitlab.com";
|
2016-10-16 12:19:03 +02:00
|
|
|
owner = "DavidGriffith";
|
|
|
|
repo = "frotz";
|
|
|
|
rev = version;
|
2021-03-03 10:28:44 +01:00
|
|
|
sha256 = "sha256-xVC/iE71W/Wdy5aPGH9DtcVAHWCcg3HkEA3iDV6OYUo=";
|
2016-10-16 12:19:03 +02:00
|
|
|
};
|
|
|
|
|
2020-08-01 20:11:36 +02: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 12:19:03 +02:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-08-01 20:11:36 +02:00
|
|
|
homepage = "https://davidgriffith.gitlab.io/frotz/";
|
|
|
|
changelog = "https://gitlab.com/DavidGriffith/frotz/-/raw/${version}/NEWS";
|
2020-10-11 07:55:05 +02:00
|
|
|
description = "A z-machine interpreter for Infocom games and other interactive fiction";
|
2016-10-16 12:19:03 +02:00
|
|
|
platforms = platforms.unix;
|
2020-08-01 20:11:36 +02:00
|
|
|
maintainers = with maintainers; [ nicknovitski ddelabru ];
|
2016-10-16 12:19:03 +02:00
|
|
|
license = licenses.gpl2;
|
|
|
|
};
|
|
|
|
}
|