From 61b22dea89e136f6bdab4eac63e42843cd2dff7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=9C=E5=9D=82=E9=9B=85?= <23130178+ShadowRZ@users.noreply.github.com> Date: Sun, 20 Sep 2026 21:00:22 +0800 Subject: [PATCH] samplebrain: actually install desktop file --- pkgs/by-name/sa/samplebrain/package.nix | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/pkgs/by-name/sa/samplebrain/package.nix b/pkgs/by-name/sa/samplebrain/package.nix index 33a1313bb545..ab185529c287 100644 --- a/pkgs/by-name/sa/samplebrain/package.nix +++ b/pkgs/by-name/sa/samplebrain/package.nix @@ -7,6 +7,7 @@ liblo, libsndfile, makeDesktopItem, + copyDesktopItems, portaudio, libsForQt5, }: @@ -33,6 +34,7 @@ stdenv.mkDerivation (finalAttrs: { nativeBuildInputs = with libsForQt5; [ qmake wrapQtAppsHook + copyDesktopItems ]; buildInputs = [ @@ -43,15 +45,17 @@ stdenv.mkDerivation (finalAttrs: { libsForQt5.qtbase ]; - desktopItem = makeDesktopItem { - type = "Application"; - desktopName = "samplebrain"; - name = "samplebrain"; - comment = "A sample masher designed by Aphex Twin"; - exec = "samplebrain"; - icon = "samplebrain"; - categories = [ "Audio" ]; - }; + desktopItems = [ + (makeDesktopItem { + type = "Application"; + desktopName = "samplebrain"; + name = "samplebrain"; + comment = "A sample masher designed by Aphex Twin"; + exec = "samplebrain"; + icon = "samplebrain"; + categories = [ "Audio" ]; + }) + ]; installPhase = '' mkdir -p $out/bin