Files
nixpkgs/pkgs/games/scummvm/default.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

94 lines
1.7 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
nasm,
alsa-lib,
curl,
flac,
fluidsynth,
freetype,
libjpeg,
libmad,
libmpeg2,
libogg,
libtheora,
libvorbis,
libGLU,
libGL,
libX11,
SDL2,
zlib,
cctools,
nix-update-script,
}:
stdenv.mkDerivation rec {
pname = "scummvm";
version = "2.9.1";
src = fetchFromGitHub {
owner = "scummvm";
repo = "scummvm";
rev = "v${version}";
hash = "sha256-+MM47piuXuIBmAQd0g/cAg5t02qSQ0sw/DwFrMUSIAA=";
};
nativeBuildInputs = [ nasm ];
buildInputs =
lib.optionals stdenv.hostPlatform.isLinux [
alsa-lib
libGLU
libGL
]
++ [
curl
freetype
flac
fluidsynth
libjpeg
libmad
libmpeg2
libogg
libtheora
libvorbis
SDL2
libX11
zlib
];
dontDisableStatic = true;
enableParallelBuilding = true;
configurePlatforms = [ "host" ];
configureFlags = [
"--enable-release"
];
# They use 'install -s', that calls the native strip instead of the cross
postConfigure = ''
sed -i "s/-c -s/-c -s --strip-program=''${STRIP@Q}/" ports.mk
''
+ lib.optionalString stdenv.hostPlatform.isDarwin ''
substituteInPlace config.mk \
--replace-fail ${stdenv.hostPlatform.config}-ranlib ${cctools}/bin/ranlib
'';
NIX_CFLAGS_COMPILE = [ "-fpermissive" ];
passthru = {
updateScript = nix-update-script { };
};
meta = with lib; {
description = "Program to run certain classic graphical point-and-click adventure games (such as Monkey Island)";
mainProgram = "scummvm";
homepage = "https://www.scummvm.org/";
license = licenses.gpl2Plus;
maintainers = [ maintainers.peterhoeg ];
platforms = platforms.unix;
};
}