2020-08-01 19:11:36 +01:00
|
|
|
{ fetchFromGitLab
|
|
|
|
, libao
|
|
|
|
, libmodplug
|
|
|
|
, libsamplerate
|
|
|
|
, libsndfile
|
|
|
|
, libvorbis
|
|
|
|
, ncurses
|
2021-05-15 13:18:41 +01:00
|
|
|
, which
|
|
|
|
, pkg-config
|
2021-01-11 07:54:33 +00:00
|
|
|
, lib, stdenv }:
|
2016-10-16 11:19:03 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-03-03 09:28:44 +00:00
|
|
|
version = "2.53";
|
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;
|
2021-03-03 09:28:44 +00:00
|
|
|
sha256 = "sha256-xVC/iE71W/Wdy5aPGH9DtcVAHWCcg3HkEA3iDV6OYUo=";
|
2016-10-16 11:19:03 +01:00
|
|
|
};
|
|
|
|
|
2021-05-15 13:18:41 +01:00
|
|
|
nativeBuildInputs = [ which pkg-config ];
|
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
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with 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;
|
|
|
|
};
|
|
|
|
}
|