mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 15:22:59 +01:00
4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
69 lines
1.9 KiB
Nix
69 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.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 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;
|
|
};
|
|
}
|