git.iko.soy/typeable/nixpkgs
on master help sign in
network-manager: use ping/ping6 from the nix store

NM upstream has a hardcoded path to /usr/bin/ping. This patch changes: - ping/ping6 are now from the nix store - we no longer try to make substitutions on a missing file - we use file from the nix store

commit8857774f91b99b49aa5348c550e40bb71f472de1 authorPeter Hoeg <peter@speartail.com> dateTue 22 Mar 2016, 00:04 (11 years ago) parente781a82
1 file changed+4−2
pkgs/tools/networking/network-manager/default.nix+4−2
pkgs/tools/networking/network-manager/default.nix+4−2
@@ -2,7 +2,7 @@
22, udev, libgudev, libnl, libuuid, polkit, gnutls, ppp, dhcp, dhcpcd, iptables
33, libgcrypt, dnsmasq, avahi, bind, perl, bluez5, substituteAll, readline
44, gobjectIntrospection, modemmanager, openresolv, libndp, newt, libsoup
5−, ethtool, gnused }:
5+, ethtool, gnused, coreutils, file, inetutils }:
66
77stdenv.mkDerivation rec {
88 name = "network-manager-${version}";
@@ -14,7 +14,9 @@ stdenv.mkDerivation rec {
1414 };
1515
1616 preConfigure = ''
17− substituteInPlace tools/glib-mkenums --replace /usr/bin/perl ${perl}/bin/perl
17+ substituteInPlace configure --replace /usr/bin/uname ${coreutils}/bin/uname
18+ substituteInPlace configure --replace /usr/bin/file ${file}/bin/file
19+ substituteInPlace src/devices/nm-device.c --replace /usr/bin/ping ${inetutils}/bin/ping
1820 substituteInPlace src/NetworkManagerUtils.c --replace /sbin/modprobe /run/current-system/sw/sbin/modprobe
1921 substituteInPlace data/85-nm-unmanaged.rules \
2022 --replace /bin/sh ${stdenv.shell} \