goattracker: use copyDesktopItems hook
This commit is contained in:
parent
50f54c5ca7
commit
65f8183685
|
@ -1,6 +1,7 @@
|
||||||
{ stdenv
|
{ stdenv
|
||||||
, fetchurl
|
, fetchurl
|
||||||
, unzip
|
, unzip
|
||||||
|
, copyDesktopItems
|
||||||
, makeDesktopItem
|
, makeDesktopItem
|
||||||
, imagemagick
|
, imagemagick
|
||||||
, SDL
|
, SDL
|
||||||
|
@ -37,7 +38,7 @@ in stdenv.mkDerivation rec {
|
||||||
};
|
};
|
||||||
sourceRoot = (if isStereo then "gt2stereo/trunk" else "goattrk2") + "/src";
|
sourceRoot = (if isStereo then "gt2stereo/trunk" else "goattrk2") + "/src";
|
||||||
|
|
||||||
nativeBuildInputs = [ unzip imagemagick ];
|
nativeBuildInputs = [ copyDesktopItems unzip imagemagick ];
|
||||||
buildInputs = [ SDL ];
|
buildInputs = [ SDL ];
|
||||||
|
|
||||||
# PREFIX gets treated as BINDIR.
|
# PREFIX gets treated as BINDIR.
|
||||||
|
@ -51,11 +52,16 @@ in stdenv.mkDerivation rec {
|
||||||
|
|
||||||
# Other files get installed during the build phase.
|
# Other files get installed during the build phase.
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
|
|
||||||
convert goattrk2.bmp goattracker.png
|
convert goattrk2.bmp goattracker.png
|
||||||
install -Dm644 goattracker.png $out/share/icons/hicolor/32x32/apps/goattracker.png
|
install -Dm644 goattracker.png $out/share/icons/hicolor/32x32/apps/goattracker.png
|
||||||
${desktopItem.buildCommand}
|
|
||||||
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
desktopItems = [ desktopItem ];
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "A crossplatform music editor for creating Commodore 64 music. Uses reSID library by Dag Lem and supports alternatively HardSID & CatWeasel devices"
|
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";
|
+ optionalString isStereo " - Stereo version";
|
||||||
|
@ -66,4 +72,3 @@ in stdenv.mkDerivation rec {
|
||||||
platforms = platforms.all;
|
platforms = platforms.all;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue