about summary refs log tree commit diff
path: root/pkgs/applications/audio
diff options
context:
space:
mode:
authoralyaeanyx <alexandra.hollmeier@mailbox.org>2021-09-08 13:45:52 +0200
committerRaphael Megzari <raphael@megzari.com>2021-09-30 21:16:07 +0900
commit37d2d14c04c2b6aadb63ca9a19f0c5e9bde7c057 (patch)
tree7c4839291475119d01fe78ed664f5796f2f87cc7 /pkgs/applications/audio
parentdec57cb241a5fe28e133662b310f9ce9da9ec970 (diff)
friture: fix desktop item
friture: remove trailing whitespace

friture: use substituteInPlace instead of patch file

friture: fix
Diffstat (limited to 'pkgs/applications/audio')
-rw-r--r--pkgs/applications/audio/friture/default.nix12
1 files changed, 12 insertions, 0 deletions
diff --git a/pkgs/applications/audio/friture/default.nix b/pkgs/applications/audio/friture/default.nix
index 8383bdbebc675..7d891834ed7fa 100644
--- a/pkgs/applications/audio/friture/default.nix
+++ b/pkgs/applications/audio/friture/default.nix
@@ -36,6 +36,18 @@ in py.buildPythonApplication rec {
     makeWrapperArgs+=("''${qtWrapperArgs[@]}")
   '';
 
+  postInstall = ''
+    substituteInPlace $out/share/applications/friture.desktop --replace usr/bin/friture friture
+
+    for size in 16 32 128 256 512
+    do
+      mkdir -p $out/share/icons/hicolor/$size\x$size
+      cp $src/resources/images/friture.iconset/icon_$size\x$size.png $out/share/icons/hicolor/$size\x$size/friture.png
+    done
+    mkdir -p $out/share/icons/hicolor/scalable/apps/
+    cp $src/resources/images-src/window-icon.svg $out/share/icons/hicolor/scalable/apps/friture.svg
+  '';
+
   meta = with lib; {
     description = "A real-time audio analyzer";
     homepage = "https://friture.org/";