at v192 39 lines 944 B view raw
1{ stdenv, fetchurl, openssl, net_snmp, libnl }: 2 3stdenv.mkDerivation rec { 4 name = "keepalived-1.2.18"; 5 6 src = fetchurl { 7 url = "http://keepalived.org/software/${name}.tar.gz"; 8 sha256 = "07l1ywg44zj2s3wn9mh6y7qbcc0cgp6q1q39hnm0c5iv5izakkg5"; 9 }; 10 11 buildInputs = [ openssl net_snmp libnl ]; 12 13 postPatch = '' 14 sed -i 's,$(DESTDIR)/usr/share,$out/share,g' Makefile.in 15 ''; 16 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 21 configureFlags = [ 22 "--sysconfdir=/etc" 23 "--localstatedir=/var" 24 "--enable-snmp" 25 "--enable-sha1" 26 ]; 27 28 installFlags = [ 29 "sysconfdir=\${out}/etc" 30 ]; 31 32 meta = with stdenv.lib; { 33 homepage = http://keepalived.org; 34 description = "routing software written in C"; 35 license = licenses.gpl2; 36 platforms = platforms.linux; 37 maintainers = with maintainers; [ wkennington ]; 38 }; 39}