diff --git a/pkgs/tools/networking/keepalived/default.nix b/pkgs/tools/networking/keepalived/default.nix index 8331e4af683..1e4e6f82092 100644 --- a/pkgs/tools/networking/keepalived/default.nix +++ b/pkgs/tools/networking/keepalived/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, openssl, net_snmp }: +{ stdenv, fetchurl, openssl, net_snmp, libnl }: stdenv.mkDerivation rec { name = "keepalived-1.2.17"; @@ -8,12 +8,16 @@ stdenv.mkDerivation rec { sha256 = "1w7px8phx3pyb3b56m3nz1a9ncx26q34fgy8j4n2dpi284jmqm6z"; }; - buildInputs = [ openssl net_snmp ]; + buildInputs = [ openssl net_snmp libnl ]; postPatch = '' sed -i 's,$(DESTDIR)/usr/share,$out/share,g' Makefile.in ''; + # It doesn't know about the include/libnl directory + NIX_CFLAGS_COMPILE="-I${libnl}/include/libnl3"; + NIX_LDFLAGS="-lnl-3 -lnl-genl-3"; + configureFlags = [ "--sysconfdir=/etc" "--localstatedir=/var"