vuls: init at 0.27.0 (#348530)
[NixPkgs.git] / pkgs / os-specific / linux / bridge-utils / default.nix
blobb10cca4cc592d2412530de4e16214106a61d8f98
1 { lib, stdenv, fetchurl, autoreconfHook, fetchpatch }:
3 stdenv.mkDerivation rec {
4   pname = "bridge-utils";
5   version = "1.7.1";
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   };
12   patches = [
13     ./autoconf-ar.patch
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   ];
22   nativeBuildInputs = [ autoreconfHook ];
24   meta = {
25     description = "Userspace tool to configure linux bridges (deprecated in favour or iproute2)";
26     mainProgram = "brctl";
27     homepage = "https://wiki.linuxfoundation.org/networking/bridge";
28     license = lib.licenses.gpl2Plus;
29     platforms = lib.platforms.linux;
30   };