summary refs log tree commit diff
path: root/pkgs/games
diff options
context:
space:
mode:
authorSarah Brofeldt <sbrofeldt@gmail.com>2020-08-06 22:01:27 +0200
committerGitHub <noreply@github.com>2020-08-06 22:01:27 +0200
commitfd8e61109ad2f1c74bd8d4a7e8fc82183fb84d74 (patch)
treef568e534dfb2999ee2b15674c82c4cd72c8d49da /pkgs/games
parent679c0849b55f4d05c13cdf1de012106f1dc9fb47 (diff)
parent5efc22d2b92a112b56672f48e94915ac0d217a1b (diff)
downloadnixpkgs-fd8e61109ad2f1c74bd8d4a7e8fc82183fb84d74.tar
nixpkgs-fd8e61109ad2f1c74bd8d4a7e8fc82183fb84d74.tar.gz
nixpkgs-fd8e61109ad2f1c74bd8d4a7e8fc82183fb84d74.tar.bz2
nixpkgs-fd8e61109ad2f1c74bd8d4a7e8fc82183fb84d74.tar.lz
nixpkgs-fd8e61109ad2f1c74bd8d4a7e8fc82183fb84d74.tar.xz
nixpkgs-fd8e61109ad2f1c74bd8d4a7e8fc82183fb84d74.tar.zst
nixpkgs-fd8e61109ad2f1c74bd8d4a7e8fc82183fb84d74.zip
Merge pull request #94463 from ddelabru/add-sfrotz
sfrotz: init at 2.52
Diffstat (limited to 'pkgs/games')
-rw-r--r--pkgs/games/sfrotz/default.nix69
1 files changed, 69 insertions, 0 deletions
diff --git a/pkgs/games/sfrotz/default.nix b/pkgs/games/sfrotz/default.nix
new file mode 100644
index 00000000000..6e4839703a1
--- /dev/null
+++ b/pkgs/games/sfrotz/default.nix
@@ -0,0 +1,69 @@
+{ fetchFromGitLab
+, freetype
+, libao
+, libjpeg
+, libmodplug
+, libpng
+, libsamplerate
+, libsndfile
+, libvorbis
+, pkg-config
+, SDL2
+, SDL2_mixer
+, stdenv
+, zlib }:
+
+stdenv.mkDerivation rec {
+  pname = "sfrotz";
+  version = "2.52";
+
+  src = fetchFromGitLab  {
+    domain = "gitlab.com";
+    owner = "DavidGriffith";
+    repo = "frotz";
+    rev = version;
+    sha256 = "11ca1dz31b7s5vxjqncwjwmbbcr2m5v2rxjn49g4gnvwd6mqw48y";
+  };
+
+  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" ];
+
+  meta = with stdenv.lib; {
+    description =
+      "Interpreter for Infocom and other Z-Machine games (SDL interface)";
+    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;
+  };
+}