kmod-blacklist-ubuntu: fix references to binaries
This commit is contained in:
parent
22690a8cd5
commit
80f8b2cfbd
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchurl }:
|
{ stdenv, fetchurl, gnugrep, findutils }:
|
||||||
let
|
let
|
||||||
version = "3ubuntu1"; # Saucy
|
version = "3ubuntu1"; # Saucy
|
||||||
in
|
in
|
||||||
@ -16,9 +16,14 @@ stdenv.mkDerivation {
|
|||||||
echo "''\n''\n## file: "`basename "$f"`"''\n''\n" >> "$out"/modprobe.conf
|
echo "''\n''\n## file: "`basename "$f"`"''\n''\n" >> "$out"/modprobe.conf
|
||||||
cat "$f" >> "$out"/modprobe.conf
|
cat "$f" >> "$out"/modprobe.conf
|
||||||
done
|
done
|
||||||
'';
|
|
||||||
|
|
||||||
#TODO: iwlwifi.conf has some strange references
|
substituteInPlace "$out"/modprobe.conf \
|
||||||
|
--replace /sbin/lsmod /run/booted-system/sw/bin/lsmod \
|
||||||
|
--replace /sbin/rmmod /run/booted-system/sw/sbin/rmmod \
|
||||||
|
--replace /sbin/modprobe /run/booted-system/sw/sbin/modprobe \
|
||||||
|
--replace " grep " " ${gnugrep}/bin/grep " \
|
||||||
|
--replace " xargs " " ${findutils}/bin/xargs "
|
||||||
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = http://packages.ubuntu.com/source/saucy/kmod;
|
homepage = http://packages.ubuntu.com/source/saucy/kmod;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user