alsa-utils: do not sed info script (#97841)
The script contains lspci.log file names and the overeager replacement breaks it.
This commit is contained in:
parent
8d25f838d0
commit
272e4273f0
@ -1,4 +1,4 @@
|
||||
{stdenv, fetchurl, alsaLib, gettext, ncurses, libsamplerate, pciutils, fftw}:
|
||||
{stdenv, fetchurl, alsaLib, gettext, makeWrapper, ncurses, libsamplerate, pciutils, which, fftw}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "alsa-utils";
|
||||
@ -9,18 +9,17 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "1ai1z4kf91b1m3qrpwqkc1af5vm2fkdkknqv95xdwf19q94aw6gz";
|
||||
};
|
||||
|
||||
patchPhase = ''
|
||||
substituteInPlace alsa-info/alsa-info.sh \
|
||||
--replace "which" "type -p" \
|
||||
--replace "lspci" "${pciutils}/bin/lspci"
|
||||
'';
|
||||
nativeBuildInputs = [ gettext ];
|
||||
nativeBuildInputs = [ gettext makeWrapper ];
|
||||
buildInputs = [ alsaLib ncurses libsamplerate fftw ];
|
||||
|
||||
configureFlags = [ "--disable-xmlto" "--with-udev-rules-dir=$(out)/lib/udev/rules.d" ];
|
||||
|
||||
installFlags = [ "ASOUND_STATE_DIR=$(TMPDIR)/dummy" ];
|
||||
|
||||
postFixup = ''
|
||||
wrapProgram $out/bin/alsa-info.sh --prefix PATH : "${stdenv.lib.makeBinPath [ which pciutils ]}"
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = "http://www.alsa-project.org/";
|
||||
description = "ALSA, the Advanced Linux Sound Architecture utils";
|
||||
|
Loading…
Reference in New Issue
Block a user