diff --git a/pkgs/applications/audio/alsa-scarlett-gui/default.nix b/pkgs/applications/audio/alsa-scarlett-gui/default.nix index 9740c2f71861..0ce5bd359e76 100644 --- a/pkgs/applications/audio/alsa-scarlett-gui/default.nix +++ b/pkgs/applications/audio/alsa-scarlett-gui/default.nix @@ -25,8 +25,8 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ pkg-config wrapGAppsHook4 ]; buildInputs = [ gtk4 alsa-lib ]; postInstall = '' - substituteInPlace $out/share/applications/vu.b4.${pname}.desktop \ - --replace "Exec=/bin/alsa-scarlett-gui" "Exec=$out/bin/${pname}" + substituteInPlace $out/share/applications/vu.b4.alsa-scarlett-gui.desktop \ + --replace "Exec=/bin/alsa-scarlett-gui" "Exec=$out/bin/alsa-scarlett-gui" ''; # causes redefinition of _FORTIFY_SOURCE