summary refs log tree commit diff
path: root/pkgs/applications/audio/goattracker/default.nix
diff options
context:
space:
mode:
authorFabian Möller <fabianm88@gmail.com>2020-11-27 13:41:44 +0100
committerMilan Pässler <milan@petabyte.dev>2020-11-29 04:03:39 +0100
commit65f8183685d5f24dffc332e95892fab413024560 (patch)
tree1153fd9f861b4aa88cba374beb50a6ee6fc1e2e6 /pkgs/applications/audio/goattracker/default.nix
parent50f54c5ca752ed3831bdf81f486468b9937e49bd (diff)
downloadnixpkgs-65f8183685d5f24dffc332e95892fab413024560.tar
nixpkgs-65f8183685d5f24dffc332e95892fab413024560.tar.gz
nixpkgs-65f8183685d5f24dffc332e95892fab413024560.tar.bz2
nixpkgs-65f8183685d5f24dffc332e95892fab413024560.tar.lz
nixpkgs-65f8183685d5f24dffc332e95892fab413024560.tar.xz
nixpkgs-65f8183685d5f24dffc332e95892fab413024560.tar.zst
nixpkgs-65f8183685d5f24dffc332e95892fab413024560.zip
goattracker: use copyDesktopItems hook
Diffstat (limited to 'pkgs/applications/audio/goattracker/default.nix')
-rw-r--r--pkgs/applications/audio/goattracker/default.nix11
1 files changed, 8 insertions, 3 deletions
diff --git a/pkgs/applications/audio/goattracker/default.nix b/pkgs/applications/audio/goattracker/default.nix
index 77a04221b84..76b5617d23c 100644
--- a/pkgs/applications/audio/goattracker/default.nix
+++ b/pkgs/applications/audio/goattracker/default.nix
@@ -1,6 +1,7 @@
 { stdenv
 , fetchurl
 , unzip
+, copyDesktopItems
 , makeDesktopItem
 , imagemagick
 , SDL
@@ -37,7 +38,7 @@ in stdenv.mkDerivation rec {
   };
   sourceRoot = (if isStereo then "gt2stereo/trunk" else "goattrk2") + "/src";
 
-  nativeBuildInputs = [ unzip imagemagick ];
+  nativeBuildInputs = [ copyDesktopItems unzip imagemagick ];
   buildInputs = [ SDL ];
 
   # PREFIX gets treated as BINDIR.
@@ -51,11 +52,16 @@ in stdenv.mkDerivation rec {
 
   # Other files get installed during the build phase.
   installPhase = ''
+    runHook preInstall
+
     convert goattrk2.bmp goattracker.png
     install -Dm644 goattracker.png $out/share/icons/hicolor/32x32/apps/goattracker.png
-    ${desktopItem.buildCommand}
+
+    runHook postInstall
   '';
 
+  desktopItems = [ desktopItem ];
+
   meta = {
     description = "A crossplatform music editor for creating Commodore 64 music. Uses reSID library by Dag Lem and supports alternatively HardSID & CatWeasel devices"
       + optionalString isStereo " - Stereo version";
@@ -66,4 +72,3 @@ in stdenv.mkDerivation rec {
     platforms = platforms.all;
   };
 }
-