git.iko.soy/typeable/nixpkgs
on master help sign in
networkmanager098: fix binary paths
commitb067b5301104c7d09d86d69febaa423a49ce14c0 authorNikolay Amiantov <ab@fmap.me> dateMon 15 Aug 2016, 10:32 (10 years ago) parentcd05a8e
2 files changed+9−3
pkgs/tools/networking/network-manager/0.9.8/default.nix+7−1 pkgs/tools/networking/network-manager/0.9.8/nixos-purity.patch+2−2
pkgs/tools/networking/network-manager/0.9.8/default.nix+7−1
@@ -1,6 +1,6 @@
11{ stdenv, fetchurl, intltool, pkgconfig, dbus_glib
22, udev, libnl, libuuid, gnutls, dhcp
3−, libgcrypt, perl, libgudev }:
3+, libgcrypt, perl, libgudev, avahi, ppp, kmod }:
44
55stdenv.mkDerivation rec {
66 name = "network-manager-${version}";
@@ -13,6 +13,12 @@ stdenv.mkDerivation rec {
1313
1414 preConfigure = ''
1515 substituteInPlace tools/glib-mkenums --replace /usr/bin/perl ${perl}/bin/perl
16+ substituteInPlace src/nm-device.c \
17+ --replace @avahi@ ${avahi} \
18+ --replace @kmod@ ${kmod}
19+ substituteInPlace src/ppp-manager/nm-ppp-manager.c \
20+ --replace @ppp@ ${ppp} \
21+ --replace @kmod@ ${kmod}
1622 '';
1723
1824 # Right now we hardcode quite a few paths at build time. Probably we should
pkgs/tools/networking/network-manager/0.9.8/nixos-purity.patch+2−2
@@ -47,7 +47,7 @@ index 1dc94ee..e60f3c8 100644
4747
4848 for (iter = modules; *iter; iter++) {
4949- char *argv[3] = { "/sbin/modprobe", *iter, NULL };
50−+ char *argv[3] = { "/var/run/current-system/sw/bin/modprobe", *iter, NULL };
50++ char *argv[3] = { "@kmod@/bin/modprobe", *iter, NULL };
5151 char *envp[1] = { NULL };
5252 GError *error = NULL;
5353
@@ -71,7 +71,7 @@ index 59698c3..7dba0f7 100644
7171 /* Make sure /dev/ppp exists (bgo #533064) */
7272 if (stat ("/dev/ppp", &st) || !S_ISCHR (st.st_mode))
7373- ignored = system ("/sbin/modprobe ppp_generic");
74−+ ignored = system ("/var/run/current-system/sw/bin/modprobe ppp_generic");
74++ ignored = system ("@kmod@/bin/modprobe ppp_generic");
7575
7676 connection = nm_act_request_get_connection (req);
7777 g_assert (connection);