summary refs log tree commit diff
path: root/pkgs/shells/bash
diff options
context:
space:
mode:
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")