1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-11 15:15:36 +00:00
nixpkgs/pkgs/os-specific/linux/ifenslave/default.nix

29 lines
635 B
Nix
Raw Normal View History

2013-12-31 15:13:31 +00:00
{ stdenv, fetchurl }:
stdenv.mkDerivation rec {
name = "ifenslave-${version}";
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-11 01:02:32 +00:00
hardening_format = false;
2013-12-31 15:13:31 +00:00
meta = {
description = "Utility for enslaving networking interfaces under a bond";
license = stdenv.lib.licenses.gpl2;
platforms = stdenv.lib.platforms.linux;
};
}