diff options
Diffstat (limited to 'pkgs/by-name/zx/zxtune/package.nix')
-rw-r--r-- | pkgs/by-name/zx/zxtune/package.nix | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/pkgs/by-name/zx/zxtune/package.nix b/pkgs/by-name/zx/zxtune/package.nix index e406afbb681bd..11a283a4eb2ba 100644 --- a/pkgs/by-name/zx/zxtune/package.nix +++ b/pkgs/by-name/zx/zxtune/package.nix @@ -25,6 +25,8 @@ , withQt ? true , qt5 , zip +, makeDesktopItem +, copyDesktopItems }: let dlopenBuildInputs = [] @@ -58,7 +60,11 @@ in stdenv.mkDerivation rec { strictDeps = true; - nativeBuildInputs = lib.optionals withQt [ zip qt5.wrapQtAppsHook ]; + nativeBuildInputs = lib.optionals withQt [ + zip + qt5.wrapQtAppsHook + copyDesktopItems + ]; buildInputs = staticBuildInputs ++ dlopenBuildInputs; @@ -118,6 +124,7 @@ in stdenv.mkDerivation rec { install -Dm755 bin/linux/release/zxtune123 -t $out/bin '' + lib.optionalString withQt '' install -Dm755 bin/linux/release/zxtune-qt -t $out/bin + install -Dm755 apps/zxtune-qt/res/theme_default/zxtune.png -t $out/share/icons/hicolor/48x48/apps '' + '' runHook postInstall ''; @@ -128,6 +135,17 @@ in stdenv.mkDerivation rec { wrapQtApp "$out/bin/zxtune-qt" ''; + desktopItems = lib.optionals withQt [(makeDesktopItem { + name = "ZXTune"; + exec = "zxtune-qt"; + icon = "zxtune"; + desktopName = "ZXTune"; + genericName = "ZXTune"; + comment = meta.description; + categories = [ "Audio" ]; + type = "Application"; + })]; + meta = with lib; { description = "Crossplatform chiptunes player"; longDescription = '' |