From 1892d71c100b5b3b71005a431af11d3add3f5b0d Mon Sep 17 00:00:00 2001 From: sohalt Date: Tue, 22 Aug 2023 20:20:03 +0200 Subject: [PATCH] alsa-scarlett-gui: add alsa-utils to PATH alsa-scarlett-gui tries to call alsactl when saving a configuration, which fails, when alsa-utils is not on the PATH --- pkgs/applications/audio/alsa-scarlett-gui/default.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/audio/alsa-scarlett-gui/default.nix b/pkgs/applications/audio/alsa-scarlett-gui/default.nix index 0ce5bd359e76..4b40069eaef5 100644 --- a/pkgs/applications/audio/alsa-scarlett-gui/default.nix +++ b/pkgs/applications/audio/alsa-scarlett-gui/default.nix @@ -2,6 +2,8 @@ , stdenv , fetchFromGitHub , pkg-config +, makeWrapper +, alsa-utils , alsa-lib , gtk4 , wrapGAppsHook4 @@ -22,9 +24,11 @@ stdenv.mkDerivation rec { makeFlags = [ "DESTDIR=\${out}" "PREFIX=''" ]; sourceRoot = "${src.name}/src"; - nativeBuildInputs = [ pkg-config wrapGAppsHook4 ]; + nativeBuildInputs = [ pkg-config wrapGAppsHook4 makeWrapper ]; buildInputs = [ gtk4 alsa-lib ]; postInstall = '' + wrapProgram $out/bin/alsa-scarlett-gui --prefix PATH : ${lib.makeBinPath [ alsa-utils ]} + substituteInPlace $out/share/applications/vu.b4.alsa-scarlett-gui.desktop \ --replace "Exec=/bin/alsa-scarlett-gui" "Exec=$out/bin/alsa-scarlett-gui" '';