nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ fetchFromGitLab
2, freetype
3, libao
4, libjpeg
5, libmodplug
6, libpng
7, libsamplerate
8, libsndfile
9, libvorbis
10, pkg-config
11, SDL2
12, SDL2_mixer
13, lib, stdenv
14, zlib }:
15
16stdenv.mkDerivation rec {
17 pname = "sfrotz";
18 version = "2.52";
19
20 src = fetchFromGitLab {
21 domain = "gitlab.com";
22 owner = "DavidGriffith";
23 repo = "frotz";
24 rev = version;
25 sha256 = "11ca1dz31b7s5vxjqncwjwmbbcr2m5v2rxjn49g4gnvwd6mqw48y";
26 };
27
28 buildInputs = [
29 freetype
30 libao
31 libjpeg
32 libmodplug
33 libpng
34 libsamplerate
35 libsndfile
36 libvorbis
37 SDL2
38 SDL2_mixer
39 zlib
40 ];
41 nativeBuildInputs = [ pkg-config ];
42 makeFlags = [ "PREFIX=${placeholder "out"}" ];
43 buildPhase = "make sdl";
44 installTargets = [ "install_sfrotz" ];
45
46 meta = with lib; {
47 description =
48 "Interpreter for Infocom and other Z-Machine games (SDL interface)";
49 longDescription = ''
50 Frotz is a Z-Machine interpreter. The Z-machine is a virtual machine
51 designed by Infocom to run all of their text adventures. It went through
52 multiple revisions during the lifetime of the company, and two further
53 revisions (V7 and V8) were created by Graham Nelson after the company's
54 demise. The specification is now quite well documented; this version of
55 Frotz supports version 1.0.
56
57 This version of Frotz fully supports all these versions of the Z-Machine
58 including the graphical version 6. Graphics and sound are created through
59 the use of the SDL libraries. AIFF sound effects and music in MOD and OGG
60 formats are supported when packaged in Blorb container files or optionally
61 from individual files.
62 '';
63 homepage = "https://davidgriffith.gitlab.io/frotz/";
64 changelog = "https://gitlab.com/DavidGriffith/frotz/-/raw/${version}/NEWS";
65 license = licenses.gpl2;
66 maintainers = with maintainers; [ ddelabru ];
67 platforms = platforms.linux;
68 };
69}