diff --git a/pkgs/applications/audio/alsa-scarlett-gui/default.nix b/pkgs/applications/audio/alsa-scarlett-gui/default.nix index 2a70103b55c4..91ba81d892c8 100644 --- a/pkgs/applications/audio/alsa-scarlett-gui/default.nix +++ b/pkgs/applications/audio/alsa-scarlett-gui/default.nix @@ -26,8 +26,8 @@ stdenv.mkDerivation rec { buildInputs = [ gtk4 alsa-lib ]; postInstall = '' substituteInPlace $out/share/applications/vu.b4.${pname}.desktop \ - --replace "Exec=/bin/alsa-scarlett-gui" "Exec=$out/bin/alsa-scarlett-gui" \ - --replace "Icon=alsa-scarlett-gui" "Icon=$out/share/icons/hicolor/256x256/apps/alsa-scarlett-gui.png" + --replace "Exec=/bin/alsa-scarlett-gui" "Exec=$out/bin/${pname}" \ + --replace "Icon=alsa-scarlett-gui" "Icon=$out/share/icons/hicolor/256x256/apps/${pname}.png" ''; # causes redefinition of _FORTIFY_SOURCE