From 3ea1c5bc0c40342e4270443d6f8808210de4a045 Mon Sep 17 00:00:00 2001 From: "William A. Kennington III" Date: Sat, 27 Jun 2015 19:59:44 -0700 Subject: [PATCH] keepalived: Add libnl support --- pkgs/tools/networking/keepalived/default.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/networking/keepalived/default.nix b/pkgs/tools/networking/keepalived/default.nix index 8331e4af6833..1e4e6f820926 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"