@@ -1,4 +1,4 @@
1−{ stdenv, fetchurl, openssl, net_snmp }:
1+{ stdenv, fetchurl, openssl, net_snmp, libnl }:
22
33stdenv.mkDerivation rec {
44 name = "keepalived-1.2.17";
@@ -8,12 +8,16 @@ stdenv.mkDerivation rec {
88 sha256 = "1w7px8phx3pyb3b56m3nz1a9ncx26q34fgy8j4n2dpi284jmqm6z";
99 };
1010
11− buildInputs = [ openssl net_snmp ];
11+ buildInputs = [ openssl net_snmp libnl ];
1212
1313 postPatch = ''
1414 sed -i 's,$(DESTDIR)/usr/share,$out/share,g' Makefile.in
1515 '';
1616
17+ # It doesn't know about the include/libnl<n> directory
18+ NIX_CFLAGS_COMPILE="-I${libnl}/include/libnl3";
19+ NIX_LDFLAGS="-lnl-3 -lnl-genl-3";
20+
1721 configureFlags = [
1822 "--sysconfdir=/etc"
1923 "--localstatedir=/var"