2021-01-15 14:45:37 +00:00
|
|
|
{ lib, stdenv, fetchurl }:
|
2013-12-31 15:13:31 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "ifenslave";
|
2013-12-31 15:13:31 +00:00
|
|
|
version = "1.1.0";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://debian/pool/main/i/ifenslave-2.6/ifenslave-2.6_${version}.orig.tar.gz";
|
|
|
|
sha256 = "0h9hrmy19zdksl7ys250r158b943ihbgkb95n8p4k8l0vqsby5vr";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
gcc -o ifenslave ifenslave.c
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp -a ifenslave $out/bin
|
|
|
|
'';
|
|
|
|
|
2016-02-26 17:38:15 +00:00
|
|
|
hardeningDisable = [ "format" ];
|
2016-02-11 01:02:32 +00:00
|
|
|
|
2013-12-31 15:13:31 +00:00
|
|
|
meta = {
|
|
|
|
description = "Utility for enslaving networking interfaces under a bond";
|
2021-01-15 14:45:37 +00:00
|
|
|
license = lib.licenses.gpl2;
|
|
|
|
platforms = lib.platforms.linux;
|
2013-12-31 15:13:31 +00:00
|
|
|
};
|
|
|
|
}
|