zxtune: add desktop item
This commit is contained in:
parent
7e3f2952c1
commit
e9c34b282a
@ -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 = ''
|
||||
|
Loading…
Reference in New Issue
Block a user