depot/third_party/nixpkgs/pkgs/tools/networking/vlan/default.nix
Default email a3bb8d7922 Project import generated by Copybara.
GitOrigin-RevId: 439b1605227b8adb1357b55ce8529d541abbe9eb
2021-08-06 00:33:18 +03:00

34 lines
720 B
Nix

{ lib, stdenv, fetchurl }:
stdenv.mkDerivation rec {
pname = "vlan";
version = "1.9";
src = fetchurl {
url = "mirror://gentoo/distfiles/vlan.${version}.tar.gz";
sha256 = "1jjc5f26hj7bk8nkjxsa8znfxcf8pgry2ipnwmj2fr6ky0dhm3rv";
};
hardeningDisable = [ "format" ];
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 = with lib; {
description = "User mode programs to enable VLANs on Ethernet devices";
platforms = platforms.linux;
license = licenses.gpl2Plus;
};
}