1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-20 04:31:52 +00:00
nixpkgs/pkgs/tools/networking/vlan/default.nix
Tuomas Tynkkynen 21f17d69f6 treewide: Add lots of meta.platforms
Build-tested on x86_64 Linux & Mac.
2016-08-02 21:42:43 +03:00

31 lines
629 B
Nix

{ stdenv, fetchurl }:
stdenv.mkDerivation rec {
name = "vlan-1.9";
src = fetchurl {
url = mirror://gentoo/distfiles/vlan.1.9.tar.gz;
sha256 = "1jjc5f26hj7bk8nkjxsa8znfxcf8pgry2ipnwmj2fr6ky0dhm3rv";
};
preBuild =
''
# Ouch, the tarball contains pre-compiled binaries.
make clean
'';
installPhase =
''
mkdir -p $out/sbin
cp vconfig $out/sbin/
mkdir -p $out/share/man/man8
cp vconfig.8 $out/share/man/man8/
'';
meta = {
description = "User mode programs to enable VLANs on Ethernet devices";
platforms = stdenv.lib.platforms.linux;
};
}