summary refs log tree commit diff
path: root/pkgs/shells/bash
diff options
context:
space:
mode:
authorAlyssa Ross <hi@alyssa.is>2023-01-13 04:02:35 +0000
committerAlyssa Ross <hi@alyssa.is>2023-01-13 13:12:40 +0000
commitbe0d0f2905686ba3d753b0c566782c1548e0af54 (patch)
tree5add3fed3ad7a172626955897ea0af7a27ecb376 /pkgs/shells/bash
parentb6427439deead716ba4d178432b2a2e15304e40f (diff)
downloadnixpkgs-be0d0f2905686ba3d753b0c566782c1548e0af54.tar
nixpkgs-be0d0f2905686ba3d753b0c566782c1548e0af54.tar.gz
nixpkgs-be0d0f2905686ba3d753b0c566782c1548e0af54.tar.bz2
nixpkgs-be0d0f2905686ba3d753b0c566782c1548e0af54.tar.lz
nixpkgs-be0d0f2905686ba3d753b0c566782c1548e0af54.tar.xz
nixpkgs-be0d0f2905686ba3d753b0c566782c1548e0af54.tar.zst
nixpkgs-be0d0f2905686ba3d753b0c566782c1548e0af54.zip
pkgsStatic.bash: fix build
Link: https://lists.gnu.org/archive/html/bug-bash/2022-10/msg00000.html
Diffstat (limited to 'pkgs/shells/bash')
-rw-r--r--pkgs/shells/bash/5.nix7
1 files changed, 6 insertions, 1 deletions
diff --git a/pkgs/shells/bash/5.nix b/pkgs/shells/bash/5.nix
index 6e16c083bc7..40db2abe03a 100644
--- a/pkgs/shells/bash/5.nix
+++ b/pkgs/shells/bash/5.nix
@@ -51,7 +51,12 @@ stdenv.mkDerivation rec {
   patchFlags = [ "-p0" ];
 
   patches = upstreamPatches
-    ++ [ ./pgrp-pipe-5.patch ];
+    ++ [ ./pgrp-pipe-5.patch ]
+    ++ lib.optional stdenv.hostPlatform.isStatic (fetchurl {
+      name = "fix-static.patch";
+      url = "https://cgit.freebsd.org/ports/plain/shells/bash/files/patch-configure?id=3e147a1f594751a68fea00a28090d0792bee0b51";
+      sha256 = "XHFMQ6eXTReNoywdETyrfQEv1rKF8+XFbQZP4YoVKFk=";
+    });
 
   configureFlags = [
     (if interactive then "--with-installed-readline" else "--disable-readline")