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/";