1{ lib, stdenv, fetchurl, autoreconfHook, fetchpatch }:
2
3stdenv.mkDerivation rec {
4 pname = "bridge-utils";
5 version = "1.7.1";
6
7 src = fetchurl {
8 url = "https://kernel.org/pub/linux/utils/net/bridge-utils/bridge-utils-${version}.tar.xz";
9 sha256 = "sha256-ph2L5PGhQFxgyO841UTwwYwFszubB+W0sxAzU2Fl5g4=";
10 };
11
12 patches = [
13 ./autoconf-ar.patch
14
15 (fetchpatch {
16 name = "musl-includes.patch";
17 url = "https://git.alpinelinux.org/aports/plain/main/bridge-utils/fix-PATH_MAX-on-ppc64le.patch?id=12c9046eee3a0a35665dc4e280c1f5ae2af5845d";
18 sha256 = "sha256-uY1tgJhcm1DFctg9scmC8e+mgowgz4f/oF0+k+x+jqw=";
19 })
20 ];
21
22 nativeBuildInputs = [ autoreconfHook ];
23
24 meta = {
25 description = "An userspace tool to configure linux bridges (deprecated in favour or iproute2).";
26 homepage = "https://wiki.linuxfoundation.org/networking/bridge";
27 license = lib.licenses.gpl2Plus;
28 platforms = lib.platforms.linux;
29 };
30}