mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
classicube: move runHook postInstall
This commit is contained in:
parent
235799128b
commit
c73f29c723
@ -79,6 +79,7 @@ stdenv.mkDerivation rec {
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p "$out/bin"
|
||||
cp 'src/ClassiCube' "$out/bin"
|
||||
# ClassiCube puts downloaded resources
|
||||
@ -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; {
|
||||
|
Loading…
Reference in New Issue
Block a user