networkmanager: fix udev rules file, fixes #11744
This commit is contained in:
parent
0163eaea6e
commit
13548530a6
1 changed files with 6 additions and 1 deletions
|
@ -1,7 +1,8 @@
|
|||
{ stdenv, fetchurl, intltool, wirelesstools, pkgconfig, dbus_glib, xz
|
||||
, udev, libgudev, libnl, libuuid, polkit, gnutls, ppp, dhcp, dhcpcd, iptables
|
||||
, libgcrypt, dnsmasq, avahi, bind, perl, bluez5, substituteAll, readline
|
||||
, gobjectIntrospection, modemmanager, openresolv, libndp, newt, libsoup }:
|
||||
, gobjectIntrospection, modemmanager, openresolv, libndp, newt, libsoup
|
||||
, ethtool, gnused }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "network-manager-${version}";
|
||||
|
@ -16,6 +17,10 @@ stdenv.mkDerivation rec {
|
|||
substituteInPlace tools/glib-mkenums --replace /usr/bin/perl ${perl}/bin/perl
|
||||
substituteInPlace src/ppp-manager/nm-ppp-manager.c --replace /sbin/modprobe /run/current-system/sw/sbin/modprobe
|
||||
substituteInPlace src/devices/nm-device.c --replace /sbin/modprobe /run/current-system/sw/sbin/modprobe
|
||||
substituteInPlace data/85-nm-unmanaged.rules \
|
||||
--replace /bin/sh ${stdenv.shell} \
|
||||
--replace /usr/sbin/ethtool ${ethtool}/sbin/ethtool \
|
||||
--replace /bin/sed ${gnused}/bin/sed
|
||||
configureFlags="$configureFlags --with-udev-dir=$out/lib/udev"
|
||||
'';
|
||||
|
||||
|
|
Loading…
Reference in a new issue