3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/networking/vlan/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

35 lines
720 B
Nix
Raw Normal View History

{ lib, stdenv, fetchurl }:
stdenv.mkDerivation rec {
pname = "vlan";
version = "1.9";
src = fetchurl {
url = "mirror://gentoo/distfiles/vlan.${version}.tar.gz";
sha256 = "1jjc5f26hj7bk8nkjxsa8znfxcf8pgry2ipnwmj2fr6ky0dhm3rv";
};
2016-08-04 10:03:28 +01:00
hardeningDisable = [ "format" ];
preBuild =
''
# Ouch, the tarball contains pre-compiled binaries.
make clean
'';
installPhase =
''
mkdir -p $out/sbin
cp vconfig $out/sbin/
2016-08-04 10:03:28 +01:00
mkdir -p $out/share/man/man8
cp vconfig.8 $out/share/man/man8/
'';
meta = with lib; {
description = "User mode programs to enable VLANs on Ethernet devices";
2018-09-10 20:52:21 +01:00
platforms = platforms.linux;
license = licenses.gpl2Plus;
};
}