Skip to content

Commit

Permalink
pkgs(games/native/celeste-classic*): improve packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
mrtnvgr committed Nov 1, 2023
1 parent b8a27bf commit 6941798
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
8 changes: 5 additions & 3 deletions pkgs/games/native/celeste-classic-2.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
, SDL2
}:

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

Expand All @@ -23,8 +23,10 @@ stdenvNoCC.mkDerivation {

installPhase = ''
runHook preInstall
install -Dsm755 celeste2 $out/bin/celeste-classic-2
install -Dm444 data.pod $out/bin/data.pod
install -Dsm755 celeste2 $out/lib/${pname}/${pname}
install -Dm444 data.pod $out/lib/${pname}/data.pod
mkdir -p $out/bin
ln -s $out/lib/${pname}/${pname} $out/bin/
runHook postInstall
'';

Expand Down
6 changes: 4 additions & 2 deletions pkgs/games/native/celeste-classic.nix
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,10 @@ stdenvNoCC.mkDerivation {

installPhase = ''
runHook preInstall
install -Dsm755 ${directory}/${srcbin} $out/bin/${outbin}
install -Dm444 ${directory}/data.pod $out/bin/data.pod
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
'';

Expand Down

0 comments on commit 6941798

Please sign in to comment.