lol

Merge pull request #264717 from mrtnvgr/celeste-classic

authored by

ckie and committed by
GitHub
39d2f084 24223d57

+61
+8
maintainers/maintainer-list.nix
··· 12123 12123 github = "MrTarantoga"; 12124 12124 githubId = 53876219; 12125 12125 }; 12126 + mrtnvgr = { 12127 + name = "Egor Martynov"; 12128 + github = "mrtnvgr"; 12129 + githubId = 48406064; 12130 + keys = [{ 12131 + fingerprint = "6FAD DB43 D5A5 FE52 6835 0943 5B33 79E9 81EF 48B1"; 12132 + }]; 12133 + }; 12126 12134 mrVanDalo = { 12127 12135 email = "contact@ingolf-wagner.de"; 12128 12136 github = "mrVanDalo";
+49
pkgs/by-name/ce/celeste-classic/package.nix
··· 1 + { lib 2 + , stdenvNoCC 3 + , fetchzip 4 + , autoPatchelfHook 5 + , SDL2 6 + , practiceMod ? false 7 + }: 8 + 9 + let 10 + directory = if practiceMod then "CELESTE*Practice*" else "CELESTE"; 11 + srcbin = if practiceMod then "celeste_practice_mod" else "celeste"; 12 + outbin = if practiceMod then "celeste-classic-pm" else "celeste-classic"; 13 + in 14 + stdenvNoCC.mkDerivation { 15 + pname = outbin; 16 + version = "unstable-2020-12-08"; 17 + 18 + # From https://www.speedrun.com/celestep8/resources 19 + src = fetchzip { 20 + url = "https://www.speedrun.com/static/resource/174ye.zip?v=f3dc98f"; 21 + hash = "sha256-GANHqKB0N905QJOLaePKWkUuPl9UlL1iqvkMMvw/CC8="; 22 + extension = "zip"; 23 + }; 24 + 25 + nativeBuildInputs = [ 26 + autoPatchelfHook 27 + ]; 28 + 29 + buildInputs = [ SDL2 ]; 30 + 31 + installPhase = '' 32 + runHook preInstall 33 + install -Dsm755 ${directory}/${srcbin} $out/lib/${outbin}/${outbin} 34 + install -Dm444 ${directory}/data.pod $out/lib/${outbin}/data.pod 35 + mkdir -p $out/bin 36 + ln -s $out/lib/${outbin}/${outbin} $out/bin/ 37 + runHook postInstall 38 + ''; 39 + 40 + meta = with lib; { 41 + description = "A PICO-8 platformer about climbing a mountain, made in four days${lib.optionalString practiceMod " (Practice Mod)"}"; 42 + homepage = "https://celesteclassic.github.io/"; 43 + license = licenses.unfree; 44 + platforms = platforms.linux; 45 + mainProgram = outbin; 46 + maintainers = with maintainers; [ mrtnvgr ]; 47 + sourceProvenance = with sourceTypes; [ binaryNativeCode ]; 48 + }; 49 + }
+4
pkgs/top-level/all-packages.nix
··· 447 447 448 448 ccal = callPackage ../tools/misc/ccal { }; 449 449 450 + celeste-classic-pm = pkgs.celeste-classic.override { 451 + practiceMod = true; 452 + }; 453 + 450 454 cereal = cereal_1_3_0; 451 455 cereal_1_3_0 = callPackage ../development/libraries/cereal/1.3.0.nix { }; 452 456 cereal_1_3_2 = callPackage ../development/libraries/cereal/1.3.2.nix { };