summary refs log tree commit diff
diff options
context:
space:
mode:
authorYureka <yuka@yuka.dev>2022-11-30 09:17:05 +0100
committerGitHub <noreply@github.com>2022-11-30 09:17:05 +0100
commitc55d02f41bba94b6d4c07c44f86e2bbfa188b4ce (patch)
tree52ac26cc2c25f01bea62e8f1dbd768527e8ec602
parent1b68f3a0ddbb69173083a12d4e83a606ce6bdf49 (diff)
downloadnixpkgs-c55d02f41bba94b6d4c07c44f86e2bbfa188b4ce.tar
nixpkgs-c55d02f41bba94b6d4c07c44f86e2bbfa188b4ce.tar.gz
nixpkgs-c55d02f41bba94b6d4c07c44f86e2bbfa188b4ce.tar.bz2
nixpkgs-c55d02f41bba94b6d4c07c44f86e2bbfa188b4ce.tar.lz
nixpkgs-c55d02f41bba94b6d4c07c44f86e2bbfa188b4ce.tar.xz
nixpkgs-c55d02f41bba94b6d4c07c44f86e2bbfa188b4ce.tar.zst
nixpkgs-c55d02f41bba94b6d4c07c44f86e2bbfa188b4ce.zip
pkgsMusl.bridge-utils: fix build (#203256)
-rw-r--r--pkgs/os-specific/linux/bridge-utils/default.nix12
1 files changed, 10 insertions, 2 deletions
diff --git a/pkgs/os-specific/linux/bridge-utils/default.nix b/pkgs/os-specific/linux/bridge-utils/default.nix
index cbbf77c67c8..a03cb12727c 100644
--- a/pkgs/os-specific/linux/bridge-utils/default.nix
+++ b/pkgs/os-specific/linux/bridge-utils/default.nix
@@ -1,4 +1,4 @@
-{ lib, stdenv, fetchurl, autoreconfHook }:
+{ lib, stdenv, fetchurl, autoreconfHook, fetchpatch }:
 
 stdenv.mkDerivation rec {
   pname = "bridge-utils";
@@ -9,7 +9,15 @@ stdenv.mkDerivation rec {
     sha256 = "sha256-ph2L5PGhQFxgyO841UTwwYwFszubB+W0sxAzU2Fl5g4=";
   };
 
-  patches = [ ./autoconf-ar.patch ];
+  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 ];