diff options
author | sohalt <sohalt@sohalt.net> | 2023-08-22 20:20:03 +0200 |
---|---|---|
committer | sohalt <sohalt@sohalt.net> | 2023-08-22 21:44:52 +0200 |
commit | 1892d71c100b5b3b71005a431af11d3add3f5b0d (patch) | |
tree | 53180450cc9f4d62e3666cd2d2d44bad1e97dd8f /pkgs/applications/audio/alsa-scarlett-gui | |
parent | bb604b3a76882cc4f1cb2346ad2c1f512a37869f (diff) |
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
Diffstat (limited to 'pkgs/applications/audio/alsa-scarlett-gui')
-rw-r--r-- | pkgs/applications/audio/alsa-scarlett-gui/default.nix | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pkgs/applications/audio/alsa-scarlett-gui/default.nix b/pkgs/applications/audio/alsa-scarlett-gui/default.nix index 0ce5bd359e765..4b40069eaef55 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" ''; |