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