Files
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

49 lines
1.1 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
SDL2,
SDL2_image,
SDL2_mixer,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "abbaye-des-morts";
version = "2.0.5";
src = fetchFromGitHub {
owner = "nevat";
repo = "abbayedesmorts-gpl";
tag = "v${finalAttrs.version}";
sha256 = "sha256-muJt1cml0nYdgl0v8cudpUXcdSntc49e6zICTCwzkks=";
};
buildInputs = [
SDL2
SDL2_image
SDL2_mixer
];
makeFlags = [
"PREFIX=${placeholder "out"}"
"DESTDIR="
]
++ lib.optional stdenv.isDarwin "PLATFORM=mac";
# Even with PLATFORM=mac, the Makefile specifies some GCC-specific CFLAGS that
# are not supported by modern Clang on macOS
postPatch = lib.optionalString stdenv.isDarwin ''
substituteInPlace Makefile \
--replace-fail "-funswitch-loops" "" \
--replace-fail "-fgcse-after-reload" ""
'';
meta = {
homepage = "https://locomalito.com/abbaye_des_morts.php";
description = "Retro arcade video game";
mainProgram = "abbayev2";
license = lib.licenses.gpl3;
maintainers = with lib.maintainers; [ marius851000 ];
};
})