nixpkgs/pkgs/by-name/sf/sfrotz/package.nix
Silvan Mosberger 4f0dadbf38 treewide: format all inactive Nix files
After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.

Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.

A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.

This commit was automatically created and can be verified using

    nix-build a08b3a4d19.tar.gz \
      --argstr baseRev b32a094368
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:26:33 +01:00

73 lines
1.9 KiB
Nix

{
fetchFromGitLab,
freetype,
libao,
libjpeg,
libmodplug,
libpng,
libsamplerate,
libsndfile,
libvorbis,
pkg-config,
SDL2,
SDL2_mixer,
lib,
stdenv,
zlib,
}:
stdenv.mkDerivation rec {
pname = "sfrotz";
version = "2.54";
src = fetchFromGitLab {
domain = "gitlab.com";
owner = "DavidGriffith";
repo = "frotz";
rev = version;
hash = "sha256-GvGxojD8d5GVy/d8h3q6K7KJroz2lsKbfE0F0acjBl8=";
};
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 lib; {
description = "Interpreter for Infocom and other Z-Machine games (SDL interface)";
mainProgram = "sfrotz";
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.gpl2Plus;
maintainers = with maintainers; [ ddelabru ];
platforms = platforms.linux;
};
}