diff --git a/pkgs/applications/audio/alsa-scarlett-gui/default.nix b/pkgs/applications/audio/alsa-scarlett-gui/default.nix index 80db9e85d3db8..fec5cd3044765 100644 --- a/pkgs/applications/audio/alsa-scarlett-gui/default.nix +++ b/pkgs/applications/audio/alsa-scarlett-gui/default.nix @@ -24,6 +24,10 @@ stdenv.mkDerivation rec { sourceRoot = "source/src"; 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}" + ''; # causes redefinition of _FORTIFY_SOURCE hardeningDisable = [ "fortify3" ];