gnugrep: Add runtimeShell to buildInputs

This package distributes shell scripts in /bin. Its shebangs are
always patched to a /nix/store shell, but by default, they are patched to
use the stdenv's shell, which during bootstrap is build in the previous
stdenv. By using runtimeShell from the current stdenv, we can shorten the
FreeBSD bootstrap process significantly.
This commit is contained in:
Audrey Dutcher 2024-05-25 16:37:47 -07:00
parent fa8c2ac3be
commit 125d947ed5

View File

@ -1,4 +1,4 @@
{ lib, stdenv, glibcLocales, fetchurl, pcre2, libiconv, perl }:
{ lib, stdenv, glibcLocales, fetchurl, pcre2, libiconv, perl, runtimeShellPackage }:
# Note: this package is used for bootstrapping fetchurl, and thus
# cannot use fetchpatch! All mutable patches (generated by GitHub or
@ -26,7 +26,7 @@ stdenv.mkDerivation {
nativeCheckInputs = [ perl glibcLocales ];
outputs = [ "out" "info" ]; # the man pages are rather small
buildInputs = [ pcre2 libiconv ];
buildInputs = [ pcre2 libiconv runtimeShellPackage ];
# cygwin: FAIL: multibyte-white-space
# freebsd: FAIL mb-non-UTF8-performance