iproute: Build the netem tools
They will be installed now and we can provide $HOSTCC for cross-compilation. New files: +lib/tc/experimental.dist +lib/tc/normal.dist +lib/tc/pareto.dist +lib/tc/paretonormal.dist Note: The distributions are generated in a reproducible way. Co-Authored-By: Benjamin Saunders <ben.e.saunders@gmail.com>
This commit is contained in:
parent
aa46e1ae34
commit
94f2a76718
@ -1,5 +1,5 @@
|
||||
{ stdenv, fetchurl
|
||||
, bison, flex, pkg-config
|
||||
, buildPackages, bison, flex, pkg-config
|
||||
, db, iptables, libelf, libmnl
|
||||
}:
|
||||
|
||||
@ -15,8 +15,6 @@ stdenv.mkDerivation rec {
|
||||
preConfigure = ''
|
||||
# Don't try to create /var/lib/arpd:
|
||||
sed -e '/ARPDDIR/d' -i Makefile
|
||||
# Don't build netem tools--they're not installed and require HOSTCC
|
||||
substituteInPlace Makefile --replace " netem " " "
|
||||
'';
|
||||
|
||||
outputs = [ "out" "dev" ];
|
||||
@ -36,6 +34,7 @@ stdenv.mkDerivation rec {
|
||||
"CONFDIR=$(out)/etc/iproute2"
|
||||
];
|
||||
|
||||
depsBuildBuild = [ buildPackages.stdenv.cc ]; # netem requires $HOSTCC
|
||||
nativeBuildInputs = [ bison flex pkg-config ];
|
||||
buildInputs = [ db iptables libelf libmnl ];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user