nixpkgs/pkgs/os-specific/linux/ifenslave/default.nix
2024-06-21 12:28:43 +03:00

30 lines
658 B
Nix

{ lib, stdenv, fetchurl }:
stdenv.mkDerivation rec {
pname = "ifenslave";
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
'';
hardeningDisable = [ "format" ];
meta = {
description = "Utility for enslaving networking interfaces under a bond";
mainProgram = "ifenslave";
license = lib.licenses.gpl2Only;
platforms = lib.platforms.linux;
};
}