8d28093ffb
GitOrigin-RevId: 31ffc50c571e6683e9ecc9dbcbd4a8e9914b4497
32 lines
897 B
Nix
32 lines
897 B
Nix
{ lib, stdenv, fetchurl, autoreconfHook }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "bridge-utils";
|
|
version = "1.5";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/bridge/bridge-utils-${version}.tar.gz";
|
|
sha256 = "42f9e5fb8f6c52e63a98a43b81bd281c227c529f194913e1c51ec48a393b6688";
|
|
};
|
|
|
|
patches = [
|
|
./autoconf-ar.patch
|
|
./add-ip6-header.patch # Remove patch once the kernel headers are updated
|
|
];
|
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
|
|
postInstall = ''
|
|
# The bridge utils build does not fail even if the brctl binary
|
|
# is not build. This test ensures that we fail if we don't produce a brctl
|
|
# binary.
|
|
test -f $out/sbin/brctl
|
|
'';
|
|
|
|
meta = {
|
|
description = "https://sourceforge.net/projects/bridge/";
|
|
homepage = "https://wiki.linuxfoundation.org/networking/bridge";
|
|
license = lib.licenses.gpl2Plus;
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
}
|