2020-07-30 19:51:40 +02:00
|
|
|
{ fetchFromGitLab
|
|
|
|
, freetype
|
|
|
|
, libao
|
|
|
|
, libjpeg
|
|
|
|
, libmodplug
|
|
|
|
, libpng
|
|
|
|
, libsamplerate
|
|
|
|
, libsndfile
|
|
|
|
, libvorbis
|
|
|
|
, pkg-config
|
|
|
|
, SDL2
|
|
|
|
, SDL2_mixer
|
2021-01-11 08:54:33 +01:00
|
|
|
, lib, stdenv
|
2020-07-30 19:51:40 +02:00
|
|
|
, zlib }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "sfrotz";
|
2023-09-29 11:25:10 +02:00
|
|
|
version = "2.54";
|
2020-07-30 19:51:40 +02:00
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
domain = "gitlab.com";
|
|
|
|
owner = "DavidGriffith";
|
|
|
|
repo = "frotz";
|
|
|
|
rev = version;
|
2023-09-29 11:25:10 +02:00
|
|
|
sha256 = "sha256-GvGxojD8d5GVy/d8h3q6K7KJroz2lsKbfE0F0acjBl8=";
|
2020-07-30 19:51:40 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
freetype
|
|
|
|
libao
|
|
|
|
libjpeg
|
|
|
|
libmodplug
|
|
|
|
libpng
|
|
|
|
libsamplerate
|
|
|
|
libsndfile
|
|
|
|
libvorbis
|
|
|
|
SDL2
|
|
|
|
SDL2_mixer
|
|
|
|
zlib
|
|
|
|
];
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
makeFlags = [ "PREFIX=${placeholder "out"}" ];
|
|
|
|
buildPhase = "make sdl";
|
|
|
|
installTargets = [ "install_sfrotz" ];
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-07-30 19:51:40 +02:00
|
|
|
description =
|
|
|
|
"Interpreter for Infocom and other Z-Machine games (SDL interface)";
|
2024-03-19 03:14:51 +01:00
|
|
|
mainProgram = "sfrotz";
|
2020-07-30 19:51:40 +02:00
|
|
|
longDescription = ''
|
|
|
|
Frotz is a Z-Machine interpreter. The Z-machine is a virtual machine
|
|
|
|
designed by Infocom to run all of their text adventures. It went through
|
|
|
|
multiple revisions during the lifetime of the company, and two further
|
|
|
|
revisions (V7 and V8) were created by Graham Nelson after the company's
|
|
|
|
demise. The specification is now quite well documented; this version of
|
|
|
|
Frotz supports version 1.0.
|
|
|
|
|
|
|
|
This version of Frotz fully supports all these versions of the Z-Machine
|
|
|
|
including the graphical version 6. Graphics and sound are created through
|
|
|
|
the use of the SDL libraries. AIFF sound effects and music in MOD and OGG
|
|
|
|
formats are supported when packaged in Blorb container files or optionally
|
|
|
|
from individual files.
|
|
|
|
'';
|
|
|
|
homepage = "https://davidgriffith.gitlab.io/frotz/";
|
|
|
|
changelog = "https://gitlab.com/DavidGriffith/frotz/-/raw/${version}/NEWS";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = with maintainers; [ ddelabru ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|