samplebrain: actually install desktop file

This commit is contained in:
夜坂雅
2026-09-20 21:00:22 +08:00
parent 87f8822727
commit 61b22dea89

View File

@@ -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