nixpkgs/pkgs/tools/networking/vlan/default.nix
Damien Diederen b5213d5b0f
treewide: fix invalid gentoo/distfiles urls (#257808)
* nettools: fix url; avoid gentoo/distfiles which now uses hashed directories

* pax-utils: fix url; avoid gentoo/distfiles which now uses hashed directories

The project doesn't seem to publish the exact tarball which was relied
on, but we can fetch the sources from the original repository.  (This
implies some rebuilds.)

* mtx: fix url; avoid gentoo/distfiles which now uses hashed directories

* vlan: fix url; avoid gentoo/distfiles which now uses hashed directories
2023-09-28 20:54:54 +02:00

35 lines
743 B
Nix

{ lib, stdenv, fetchurl }:
stdenv.mkDerivation rec {
pname = "vlan";
version = "1.9";
src = fetchurl {
url = "https://www.candelatech.com/~greear/${pname}/${pname}.${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;
};
}