···66# Used to avoid cross compiling perl, for example, in darwin bootstrap tools.
77# This will cause c_rehash to refer to perl via the environment, but otherwise
88# will produce a perfectly functional openssl binary and library.
99-, withPerl ? true
99+, withPerl ? stdenv.hostPlatform == stdenv.buildPlatform
1010}:
11111212assert (
···4242 substituteInPlace "$a" \
4343 --replace /bin/rm rm
4444 done
4545- '' + optionalString (versionAtLeast version "1.1.1") ''
4646- substituteInPlace config --replace '/usr/bin/env' '${coreutils}/bin/env'
4545+ ''
4646+ # config is a configure script which is not installed.
4747+ + optionalString (versionAtLeast version "1.1.1") ''
4848+ substituteInPlace config --replace '/usr/bin/env' '${buildPackages.coreutils}/bin/env'
4749 '' + optionalString (versionAtLeast version "1.1.0" && stdenv.hostPlatform.isMusl) ''
4850 substituteInPlace crypto/async/arch/async_posix.h \
4951 --replace '!defined(__ANDROID__) && !defined(__OpenBSD__)' \