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
This commit is contained in:
parent
bb604b3a76
commit
1892d71c10
1 changed files with 5 additions and 1 deletions
|
@ -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"
|
||||
'';
|
||||
|
|
Loading…
Reference in a new issue