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

51 lines
1.4 KiB
Nix

{
lib,
stdenvNoCC,
fetchzip,
autoPatchelfHook,
SDL2,
practiceMod ? false,
}:
let
directory = if practiceMod then "CELESTE*Practice*" else "CELESTE";
srcbin = if practiceMod then "celeste_practice_mod" else "celeste";
outbin = if practiceMod then "celeste-classic-pm" else "celeste-classic";
in
stdenvNoCC.mkDerivation {
pname = outbin;
version = "unstable-2020-12-08";
# From https://www.speedrun.com/celestep8/resources
src = fetchzip {
url = "https://www.speedrun.com/static/resource/174ye.zip?v=f3dc98f";
hash = "sha256-GANHqKB0N905QJOLaePKWkUuPl9UlL1iqvkMMvw/CC8=";
extension = "zip";
};
nativeBuildInputs = [
autoPatchelfHook
];
buildInputs = [ SDL2 ];
installPhase = ''
runHook preInstall
install -Dsm755 ${directory}/${srcbin} $out/lib/${outbin}/${outbin}
install -Dm444 ${directory}/data.pod $out/lib/${outbin}/data.pod
mkdir -p $out/bin
ln -s $out/lib/${outbin}/${outbin} $out/bin/
runHook postInstall
'';
meta = with lib; {
description = "PICO-8 platformer about climbing a mountain, made in four days${lib.optionalString practiceMod " (Practice Mod)"}";
homepage = "https://celesteclassic.github.io/";
license = licenses.unfree;
platforms = platforms.linux;
mainProgram = outbin;
maintainers = with maintainers; [ mrtnvgr ];
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
};
}