diff options
author | h7x4 <h7x4@nani.wtf> | 2023-12-01 22:17:20 +0100 |
---|---|---|
committer | h7x4 <h7x4@nani.wtf> | 2023-12-02 06:57:21 +0100 |
commit | efdec26090fe6c61327b67d933e39d694da36bc2 (patch) | |
tree | ebdd2c343c8be18cbcfb29b81babb409682eee53 /pkgs/applications/audio | |
parent | 5171694860f185961daff3b1b413dabcab421300 (diff) |
treewide: install missing desktopItems
Diffstat (limited to 'pkgs/applications/audio')
-rw-r--r-- | pkgs/applications/audio/cheesecutter/default.nix | 5 | ||||
-rw-r--r-- | pkgs/applications/audio/fmit/default.nix | 11 | ||||
-rw-r--r-- | pkgs/applications/audio/gspeech/default.nix | 5 | ||||
-rw-r--r-- | pkgs/applications/audio/in-formant/default.nix | 2 | ||||
-rw-r--r-- | pkgs/applications/audio/praat/default.nix | 5 | ||||
-rw-r--r-- | pkgs/applications/audio/pt2-clone/default.nix | 7 | ||||
-rw-r--r-- | pkgs/applications/audio/rubyripper/default.nix | 4 |
7 files changed, 39 insertions, 0 deletions
diff --git a/pkgs/applications/audio/cheesecutter/default.nix b/pkgs/applications/audio/cheesecutter/default.nix index 6c14cc67f81fa..8e2877c40c7bb 100644 --- a/pkgs/applications/audio/cheesecutter/default.nix +++ b/pkgs/applications/audio/cheesecutter/default.nix @@ -36,6 +36,11 @@ stdenv.mkDerivation rec { mkdir -p $out/share/cheesecutter/example_tunes cp -r tunes/* $out/share/cheesecutter/example_tunes + + install -Dm444 arch/fd/ccutter.desktop -t $out/share/applications + for res in $(ls icons | sed -e 's/cc//g' -e 's/.png//g'); do + install -Dm444 icons/cc$res.png $out/share/icons/hicolor/''${res}x''${res}/apps/cheesecutter.png + done ''; postFixup = diff --git a/pkgs/applications/audio/fmit/default.nix b/pkgs/applications/audio/fmit/default.nix index 7fcfeb32fd3a2..fdcf944220488 100644 --- a/pkgs/applications/audio/fmit/default.nix +++ b/pkgs/applications/audio/fmit/default.nix @@ -36,6 +36,17 @@ mkDerivation rec { PREFIXSHORTCUT=$out" ''; + postInstall = '' + mkdir -p $out/share/applications + ln -s $out/fmit.desktop $out/share/applications/fmit.desktop + + mkdir -p $out/share/icons/hicolor/128x128/apps + ln -s $out/fmit.png $out/share/icons/hicolor/128x128/apps/fmit.png + + mkdir -p $out/share/icons/hicolor/scalable/apps + ln -s $out/fmit.svg $out/share/icons/hicolor/scalable/apps/fmit.svg + ''; + meta = with lib; { description = "Free Musical Instrument Tuner"; longDescription = '' diff --git a/pkgs/applications/audio/gspeech/default.nix b/pkgs/applications/audio/gspeech/default.nix index a48aa22809b4f..f2216ed7d2560 100644 --- a/pkgs/applications/audio/gspeech/default.nix +++ b/pkgs/applications/audio/gspeech/default.nix @@ -55,6 +55,11 @@ python3.pkgs.buildPythonApplication rec { librsvg ]; + postInstall = '' + install -Dm444 gspeech.desktop -t $out/share/applications + install -Dm444 icons/*.svg -t $out/share/icons/hicolor/scalable/apps + ''; + postFixup = '' wrapProgram $out/bin/gspeech --prefix PATH : ${lib.makeBinPath [ picotts sox ]} wrapProgram $out/bin/gspeech-cli --prefix PATH : ${lib.makeBinPath [ picotts sox ]} diff --git a/pkgs/applications/audio/in-formant/default.nix b/pkgs/applications/audio/in-formant/default.nix index 6801e3641852d..3df72add7f6bf 100644 --- a/pkgs/applications/audio/in-formant/default.nix +++ b/pkgs/applications/audio/in-formant/default.nix @@ -56,6 +56,8 @@ stdenv.mkDerivation rec { installPhase = '' mkdir -p $out/bin cp in-formant $out/bin + install -Dm444 $src/dist-res/in-formant.desktop -t $out/share/applications + install -Dm444 $src/dist-res/in-formant.png -t $out/share/icons/hicolor/512x512/apps ''; meta = with lib; { diff --git a/pkgs/applications/audio/praat/default.nix b/pkgs/applications/audio/praat/default.nix index 1e9e26cb18a4b..12cbb420e0464 100644 --- a/pkgs/applications/audio/praat/default.nix +++ b/pkgs/applications/audio/praat/default.nix @@ -47,6 +47,11 @@ stdenv.mkDerivation (finalAttrs: { runHook preInstall install -Dt $out/bin praat + install -Dm444 main/praat.desktop -t $out/share/applications + install -Dm444 main/praat-32.ico $out/share/icons/hicolor/32x32/apps/praat.ico + install -Dm444 main/praat-256.ico $out/share/icons/hicolor/256x256/apps/praat.ico + install -Dm444 main/praat-480.png $out/share/icons/hicolor/480x480/apps/praat.png + install -Dm444 main/praat-480.svg $out/share/icons/hicolor/scalable/apps/praat.svg runHook postInstall ''; diff --git a/pkgs/applications/audio/pt2-clone/default.nix b/pkgs/applications/audio/pt2-clone/default.nix index 276fdbf32e2c4..b6fa1ce2d0d46 100644 --- a/pkgs/applications/audio/pt2-clone/default.nix +++ b/pkgs/applications/audio/pt2-clone/default.nix @@ -20,6 +20,13 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ cmake ]; buildInputs = [ SDL2 ] ++ lib.optional stdenv.isLinux alsa-lib; + postInstall = '' + install -Dm444 "$src/release/other/Freedesktop.org Resources/ProTracker 2 clone.desktop" \ + -t $out/share/applications + install -Dm444 "$src/release/other/Freedesktop.org Resources/ProTracker 2 clone.png" \ + -t $out/share/icons/hicolor/512x512/apps + ''; + passthru.tests = { pt2-clone-opens = nixosTests.pt2-clone; }; diff --git a/pkgs/applications/audio/rubyripper/default.nix b/pkgs/applications/audio/rubyripper/default.nix index 0af80c991c2ea..23cc0577c688c 100644 --- a/pkgs/applications/audio/rubyripper/default.nix +++ b/pkgs/applications/audio/rubyripper/default.nix @@ -24,6 +24,10 @@ stdenv.mkDerivation rec { ruby ]; + postInstall = '' + cp -r share $out/ + ''; + postFixup = '' wrapProgram $out/bin/rrip_cli \ --prefix PATH : ${lib.makeBinPath [ cddiscid cdparanoia ruby ]} |