Skip to content

Commit

Permalink
classicube: move runHook postInstall
Browse files Browse the repository at this point in the history
  • Loading branch information
360ied authored and Mindavi committed Jan 7, 2023
1 parent 2357991 commit c73f29c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkgs/games/classicube/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ stdenv.mkDerivation rec {

installPhase = ''
runHook preInstall
mkdir -p "$out/bin"
cp 'src/ClassiCube' "$out/bin"
# ClassiCube puts downloaded resources
Expand All @@ -90,10 +91,11 @@ stdenv.mkDerivation rec {
wrapProgram "$out/bin/ClassiCube" \
--run 'mkdir -p "$HOME/.local/share/ClassiCube"' \
--run 'cd "$HOME/.local/share/ClassiCube"'
runHook postInstall
mkdir -p "$out/share/icons/hicolor/256x256/apps"
cp misc/CCicon.png "$out/share/icons/hicolor/256x256/apps"
runHook postInstall
'';

meta = with lib; {
Expand Down

0 comments on commit c73f29c

Please sign in to comment.