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
64 lines
1.2 KiB
Nix
64 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
autoreconfHook,
|
|
libpng,
|
|
libsamplerate,
|
|
pkg-config,
|
|
python3,
|
|
SDL2,
|
|
SDL2_mixer,
|
|
SDL2_net,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "chocolate-doom";
|
|
version = "3.1.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "chocolate-doom";
|
|
repo = "chocolate-doom";
|
|
tag = "chocolate-doom-${finalAttrs.version}";
|
|
hash = "sha256-wa4wxz70mxP41bNxWYD1EyxBGfyRoxEMPaoupvaK+XY=";
|
|
};
|
|
|
|
postPatch = ''
|
|
patchShebangs --build man/{simplecpp,docgen}
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
autoreconfHook
|
|
pkg-config
|
|
# for documentation
|
|
python3
|
|
];
|
|
|
|
buildInputs = [
|
|
libpng
|
|
libsamplerate
|
|
SDL2
|
|
SDL2_mixer
|
|
SDL2_net
|
|
];
|
|
|
|
outputs = [
|
|
"out"
|
|
"man"
|
|
];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
strictDeps = true;
|
|
|
|
meta = {
|
|
homepage = "https://www.chocolate-doom.org";
|
|
changelog = "https://github.com/chocolate-doom/chocolate-doom/releases/tag/chocolate-doom-${finalAttrs.version}";
|
|
description = "Doom source port that accurately reproduces the experience of Doom as it was played in the 1990s";
|
|
mainProgram = "chocolate-doom";
|
|
license = lib.licenses.gpl2Plus;
|
|
platforms = lib.platforms.unix;
|
|
maintainers = with lib.maintainers; [ Gliczy ];
|
|
};
|
|
})
|