Skip to content

Commit

Permalink
pkgs(games/native/celeste-classic-2): init at 1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mrtnvgr committed Oct 31, 2023
1 parent 229adae commit 45968e0
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
1 change: 1 addition & 0 deletions default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ in rec {
# Games (Native)
celeste-classic = p ./pkgs/games/native/celeste-classic.nix { };
celeste-classic-pm = celeste-classic.override { practiceMod = true; };
celeste-classic-2 = p ./pkgs/games/native/celeste-classic-2.nix { };

# some-qt5-package = pkgs.libsForQt5.callPackage ./pkgs/some-qt5-package { };
# ...
Expand Down
32 changes: 32 additions & 0 deletions pkgs/games/native/celeste-classic-2.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{ stdenvNoCC, fetchzip, autoPatchelfHook, pkgs, lib }:

stdenvNoCC.mkDerivation rec {
pname = "celeste-classic-2";
version = "1.0";

src = fetchzip {
url = "https://drive.google.com/uc?export=download&id=1qQByBKCIGGu1B3G46fBDA_nigAvOJMr8";
hash = "sha256-wlcVTm3SGXPw17K6aI6IisdAr/qijhBXZEVeAlahhq4=";
extension = "zip";
};

nativeBuildInputs = [
autoPatchelfHook
];

buildInputs = with pkgs; [ SDL2 ];

installPhase = ''
runHook preInstall
install -Dsm755 ${src}/*/celeste2 $out/bin/celeste-classic-2
install -Dm444 $src/*/data.pod $out/bin/data.pod
runHook postInstall
'';

meta = with lib; {
description = "A PICO-8 platformer about hiking around a mountain, made in three days for Celeste's third anniversary";
homepage = "https://mattmakesgames.itch.io/celeste-classic-2";
license = licenses.unfree;
platforms = platforms.linux;
};
}

0 comments on commit 45968e0

Please sign in to comment.