2024-01-05 14:40:00 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitLab
|
|
|
|
, fetchpatch
|
2020-08-01 18:11:36 +00:00
|
|
|
, libao
|
|
|
|
, libmodplug
|
|
|
|
, libsamplerate
|
|
|
|
, libsndfile
|
|
|
|
, libvorbis
|
|
|
|
, ncurses
|
2021-05-15 12:18:41 +00:00
|
|
|
, which
|
|
|
|
, pkg-config
|
2024-01-05 14:40:00 +00:00
|
|
|
}:
|
2016-10-16 10:19:03 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "frotz";
|
2024-01-05 14:40:00 +00:00
|
|
|
version = "2.54";
|
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;
|
2024-01-05 14:40:00 +00:00
|
|
|
hash = "sha256-GvGxojD8d5GVy/d8h3q6K7KJroz2lsKbfE0F0acjBl8=";
|
2016-10-16 10:19:03 +00:00
|
|
|
};
|
|
|
|
|
2024-01-05 14:40:00 +00:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/macports/macports-ports/raw/496e5b91e3b6c9dc6820d77ab60dbe400d1924ee/games/frotz/files/Makefile.patch";
|
|
|
|
extraPrefix = "";
|
|
|
|
hash = "sha256-P83ZzSi3bhncQ52Y38Q3F/7v1SJKr5614tytt862HRg=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2021-05-15 12:18:41 +00:00
|
|
|
nativeBuildInputs = [ which pkg-config ];
|
2020-08-01 18:11:36 +00:00
|
|
|
buildInputs = [ libao libmodplug libsamplerate libsndfile libvorbis ncurses ];
|
2024-01-05 14:40:00 +00:00
|
|
|
|
2020-08-01 18:11:36 +00:00
|
|
|
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";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "frotz";
|
2016-10-16 10:19:03 +00:00
|
|
|
platforms = platforms.unix;
|
2024-01-05 14:40:00 +00:00
|
|
|
maintainers = with maintainers; [ nicknovitski ddelabru ];
|
2016-10-16 10:19:03 +00:00
|
|
|
license = licenses.gpl2;
|
|
|
|
};
|
|
|
|
}
|