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