From 0aa3278a0520109c5ede66018a82ea6f855e7650 Mon Sep 17 00:00:00 2001 From: Sebastian Sellmeier Date: Tue, 1 Aug 2023 22:27:22 +0200 Subject: [PATCH] alsa-scarlett-gui: fix postInstall indentation, change to not use pname in substituion --- 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 fec5cd3044765..3ecd2a1dcd1ae 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.${pname}.desktop \ + --replace "Exec=/bin/alsa-scarlett-gui" "Exec=$out/bin/alsa-scarlett-gui" ''; # causes redefinition of _FORTIFY_SOURCE