From 37d2d14c04c2b6aadb63ca9a19f0c5e9bde7c057 Mon Sep 17 00:00:00 2001 From: alyaeanyx Date: Wed, 8 Sep 2021 13:45:52 +0200 Subject: [PATCH] friture: fix desktop item friture: remove trailing whitespace friture: use substituteInPlace instead of patch file friture: fix --- pkgs/applications/audio/friture/default.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/pkgs/applications/audio/friture/default.nix b/pkgs/applications/audio/friture/default.nix index 8383bdbebc67..7d891834ed7f 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/";