commit 4d9d03a8edf3b934886da977b98a7308a156b885
parent a1b95f2e10852ca17ea44c4c5da443c79ce88e9b
Author: Nikolay Korotkiy <sikmir@disroot.org>
Date: Sat, 7 Mar 2026 12:33:14 +0400
Up
Diffstat:
1 file changed, 20 insertions(+), 0 deletions(-)
diff --git a/pkgs/by-name/qi/qiec104/package.nix b/pkgs/by-name/qi/qiec104/package.nix
@@ -2,6 +2,9 @@
lib,
stdenv,
fetchFromGitHub,
+ copyDesktopItems,
+ desktopToDarwinBundle,
+ makeDesktopItem,
qt5,
}:
@@ -17,12 +20,29 @@ stdenv.mkDerivation (finalAttrs: {
};
nativeBuildInputs = [
+ copyDesktopItems
qt5.qmake
qt5.wrapQtAppsHook
+ ]
+ ++ lib.optional stdenv.isDarwin desktopToDarwinBundle;
+
+ desktopItems = [
+ (makeDesktopItem {
+ name = "qiec104";
+ desktopName = "Q104";
+ comment = finalAttrs.meta.description;
+ exec = "Q104";
+ icon = "Q104";
+ terminal = false;
+ categories = [
+ "Utility"
+ ];
+ })
];
postInstall = ''
install -Dm755 Q104 -t $out/bin
+ install -Dm644 icons/Q104.png -t $out/share/icons/hicolor/128x128/apps
'';
meta = {