From 588861551a581c4f324eaefb7b6ae07e3833d11f Mon Sep 17 00:00:00 2001 From: Basti Date: Thu, 10 Aug 2023 23:07:32 +0000 Subject: [PATCH] alsa-scarlett-gui: fix postInstall indentation, change to not use pname in substituion (#246636) --- pkgs/applications/audio/alsa-scarlett-gui/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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