mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-14 01:33:10 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
32 lines
972 B
Nix
32 lines
972 B
Nix
{ lib, stdenv, fetchurl, autoreconfHook, fetchpatch }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "bridge-utils";
|
|
version = "1.7.1";
|
|
|
|
src = fetchurl {
|
|
url = "https://kernel.org/pub/linux/utils/net/bridge-utils/bridge-utils-${version}.tar.xz";
|
|
sha256 = "sha256-ph2L5PGhQFxgyO841UTwwYwFszubB+W0sxAzU2Fl5g4=";
|
|
};
|
|
|
|
patches = [
|
|
./autoconf-ar.patch
|
|
|
|
(fetchpatch {
|
|
name = "musl-includes.patch";
|
|
url = "https://git.alpinelinux.org/aports/plain/main/bridge-utils/fix-PATH_MAX-on-ppc64le.patch?id=12c9046eee3a0a35665dc4e280c1f5ae2af5845d";
|
|
sha256 = "sha256-uY1tgJhcm1DFctg9scmC8e+mgowgz4f/oF0+k+x+jqw=";
|
|
})
|
|
];
|
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
|
|
meta = {
|
|
description = "Userspace tool to configure linux bridges (deprecated in favour or iproute2)";
|
|
mainProgram = "brctl";
|
|
homepage = "https://wiki.linuxfoundation.org/networking/bridge";
|
|
license = lib.licenses.gpl2Plus;
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
}
|