alsa-utils: do not sed info script ()

The script contains lspci.log file names and the overeager replacement breaks it.
This commit is contained in:
Jan Tojnar 2020-09-12 17:20:14 +02:00 committed by GitHub
parent 8d25f838d0
commit 272e4273f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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";