nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 fetchurl,
5 autoreconfHook,
6 fetchpatch,
7}:
8
9stdenv.mkDerivation (finalAttrs: {
10 pname = "bridge-utils";
11 version = "1.7.1";
12
13 src = fetchurl {
14 url = "https://kernel.org/pub/linux/utils/net/bridge-utils/bridge-utils-${finalAttrs.version}.tar.xz";
15 sha256 = "sha256-ph2L5PGhQFxgyO841UTwwYwFszubB+W0sxAzU2Fl5g4=";
16 };
17
18 patches = [
19 ./autoconf-ar.patch
20
21 (fetchpatch {
22 name = "musl-includes.patch";
23 url = "https://git.alpinelinux.org/aports/plain/main/bridge-utils/fix-PATH_MAX-on-ppc64le.patch?id=12c9046eee3a0a35665dc4e280c1f5ae2af5845d";
24 sha256 = "sha256-uY1tgJhcm1DFctg9scmC8e+mgowgz4f/oF0+k+x+jqw=";
25 })
26 ];
27
28 nativeBuildInputs = [ autoreconfHook ];
29
30 outputs = [
31 "out"
32 "man"
33 ];
34
35 meta = {
36 description = "Userspace tool to configure linux bridges (deprecated in favour or iproute2)";
37 mainProgram = "brctl";
38 homepage = "https://wiki.linuxfoundation.org/networking/bridge";
39 license = lib.licenses.gpl2Plus;
40 platforms = lib.platforms.linux;
41 };
42})