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
71 lines
1.6 KiB
Nix
71 lines
1.6 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
autoreconfHook,
|
|
libpng,
|
|
libsamplerate,
|
|
pkg-config,
|
|
python3,
|
|
SDL2,
|
|
SDL2_mixer,
|
|
SDL2_net,
|
|
zlib,
|
|
|
|
enableTruecolor ? false,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "crispy-doom";
|
|
version = "7.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "fabiangreffrath";
|
|
repo = "crispy-doom";
|
|
tag = "crispy-doom-${finalAttrs.version}";
|
|
hash = "sha256-LJLqlPSOarmm5oqSLMilxNMJl4+uKukDl/b58NpZ8VI=";
|
|
};
|
|
|
|
postPatch = ''
|
|
for script in $(grep -lr '^#!/usr/bin/env python3$'); do patchShebangs $script; done
|
|
'';
|
|
|
|
configureFlags = lib.optional enableTruecolor [ "--enable-truecolor" ];
|
|
|
|
nativeBuildInputs = [
|
|
autoreconfHook
|
|
pkg-config
|
|
python3
|
|
];
|
|
|
|
buildInputs = [
|
|
libpng
|
|
libsamplerate
|
|
SDL2
|
|
SDL2_mixer
|
|
SDL2_net
|
|
zlib
|
|
];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
strictDeps = true;
|
|
|
|
meta = {
|
|
homepage = "https://fabiangreffrath.github.io/crispy-homepage";
|
|
changelog = "https://github.com/fabiangreffrath/crispy-doom/releases/tag/crispy-doom-${finalAttrs.version}";
|
|
description = "Limit-removing enhanced-resolution Doom source port based on Chocolate Doom";
|
|
longDescription = ''
|
|
Crispy Doom is a limit-removing enhanced-resolution Doom source port based on Chocolate Doom.
|
|
Its name means that 640x400 looks \"crisp\" and is also a slight reference to its origin.
|
|
'';
|
|
mainProgram = "crispy-doom";
|
|
license = lib.licenses.gpl2Plus;
|
|
platforms = lib.platforms.unix;
|
|
maintainers = with lib.maintainers; [
|
|
Gliczy
|
|
keenanweaver
|
|
];
|
|
};
|
|
})
|