mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-29 16:24:10 +00:00
show-midi: add desktop item
This commit is contained in:
parent
ccaa736c45
commit
7e3f2952c1
@ -9,6 +9,8 @@
|
||||
, libXinerama
|
||||
, libXext
|
||||
, libXcursor
|
||||
, makeDesktopItem
|
||||
, copyDesktopItems
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
@ -23,7 +25,10 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
fetchSubmodules = true;
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
nativeBuildInputs = [
|
||||
pkg-config
|
||||
copyDesktopItems
|
||||
];
|
||||
buildInputs = [
|
||||
alsa-lib
|
||||
freetype
|
||||
@ -53,6 +58,8 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
|
||||
install -Dt $out/share/ShowMIDI/themes Themes/*
|
||||
|
||||
install -D Design/icon.png $out/share/icons/hicolor/1024x1024/apps/show-midi.png
|
||||
|
||||
mkdir -p $out/bin $out/lib/lv2 $out/lib/vst3
|
||||
cd Builds/LinuxMakefile/build/
|
||||
cp -r ShowMIDI.lv2 $out/lib/lv2
|
||||
@ -62,6 +69,16 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
desktopItems = [(makeDesktopItem {
|
||||
name = "ShowMIDI";
|
||||
exec = finalAttrs.meta.mainProgram;
|
||||
comment = finalAttrs.meta.description;
|
||||
type = "Application";
|
||||
icon = "show-midi";
|
||||
desktopName = "ShowMIDI";
|
||||
categories = [ "Audio" ];
|
||||
})];
|
||||
|
||||
# JUCE dlopens these, make sure they are in rpath
|
||||
# Otherwise, segfault will happen
|
||||
env.NIX_LDFLAGS = toString [
|
||||
|
Loading…
Reference in New Issue
Block a user