1 { lib, stdenv, fetchurl, pkg-config, libnl, popt, gnugrep }:
3 stdenv.mkDerivation rec {
8 url = "mirror://kernel/linux/utils/kernel/ipvsadm/${pname}-${version}.tar.xz";
9 sha256 = "1nyzpv1hx75k9lh0vfxfhc0p2fpqaqb38xpvs8sn88m1nljmw2hs";
13 substituteInPlace Makefile --replace "-lnl" "$(pkg-config --libs libnl-genl-3.0)"
16 nativeBuildInputs = [ pkg-config ];
17 buildInputs = [ libnl popt ];
19 # Disable parallel build, errors:
20 # *** No rule to make target 'libipvs/libipvs.a', needed by 'ipvsadm'. Stop.
21 enableParallelBuilding = false;
25 INCLUDE=$(pkg-config --cflags libnl-genl-3.0)
32 sed -i -e "s|^PATH=.*|PATH=$out/bin:${gnugrep}/bin|" $out/sbin/ipvsadm-{restore,save}
36 description = "Linux Virtual Server support programs";
37 homepage = "http://www.linuxvirtualserver.org/software/ipvs.html";
38 license = licenses.gpl2Plus;
39 platforms = platforms.linux;