From fc246ead19bebd1c42eba3e1f0b82398b8852faa Mon Sep 17 00:00:00 2001 From: Audrey Dutcher Date: Tue, 14 May 2024 15:12:16 -0700 Subject: [PATCH] bash: Fix build on FreeBSD cross --- pkgs/shells/bash/5.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/shells/bash/5.nix b/pkgs/shells/bash/5.nix index de0426fbcdcd..cdce3667c5cd 100644 --- a/pkgs/shells/bash/5.nix +++ b/pkgs/shells/bash/5.nix @@ -88,6 +88,10 @@ stdenv.mkDerivation rec { "bash_cv_termcap_lib=libncurses" ] ++ lib.optionals (stdenv.hostPlatform.libc == "musl") [ "--disable-nls" + ] ++ lib.optionals stdenv.hostPlatform.isFreeBSD [ + # /dev/fd is optional on FreeBSD. we need it to work when built on a system + # with it and transferred to a system without it! This includes linux cross. + "bash_cv_dev_fd=absent" ]; strictDeps = true;