From 158087ac5e91cfb8640dae8769b3343418b469d4 Mon Sep 17 00:00:00 2001 From: mrtnvgr Date: Tue, 31 Oct 2023 13:33:36 +0700 Subject: [PATCH] pkgs(games/native/celeste-classic-2): init at 1.0 --- default.nix | 1 + pkgs/games/native/celeste-classic-2.nix | 32 +++++++++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 pkgs/games/native/celeste-classic-2.nix diff --git a/default.nix b/default.nix index acdcaa5..0f278ea 100644 --- a/default.nix +++ b/default.nix @@ -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 { }; # ... diff --git a/pkgs/games/native/celeste-classic-2.nix b/pkgs/games/native/celeste-classic-2.nix new file mode 100644 index 0000000..d1c3f24 --- /dev/null +++ b/pkgs/games/native/celeste-classic-2.nix @@ -0,0 +1,32 @@ +{ stdenvNoCC, fetchzip, autoPatchelfHook, pkgs, lib }: + +stdenvNoCC.mkDerivation { + 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 celeste2 $out/bin/celeste-classic-2 + install -Dm444 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; + }; +}