git.iko.soy/typeable/nixpkgs
on master help sign in
keepalived: Add libnl support
commit3ea1c5bc0c40342e4270443d6f8808210de4a045 authorWilliam A. Kennington III <william@wkennington.com> dateSat 27 Jun 2015, 19:59 (11 years ago) parente44d325
1 file changed+6−2
pkgs/tools/networking/keepalived/default.nix+6−2
pkgs/tools/networking/keepalived/default.nix+6−2
@@ -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"