···6# Used to avoid cross compiling perl, for example, in darwin bootstrap tools.
7# This will cause c_rehash to refer to perl via the environment, but otherwise
8# will produce a perfectly functional openssl binary and library.
9-, withPerl ? true
10}:
1112assert (
···42 substituteInPlace "$a" \
43 --replace /bin/rm rm
44 done
45- '' + optionalString (versionAtLeast version "1.1.1") ''
46- substituteInPlace config --replace '/usr/bin/env' '${coreutils}/bin/env'
0047 '' + optionalString (versionAtLeast version "1.1.0" && stdenv.hostPlatform.isMusl) ''
48 substituteInPlace crypto/async/arch/async_posix.h \
49 --replace '!defined(__ANDROID__) && !defined(__OpenBSD__)' \
···6# Used to avoid cross compiling perl, for example, in darwin bootstrap tools.
7# This will cause c_rehash to refer to perl via the environment, but otherwise
8# will produce a perfectly functional openssl binary and library.
9+, withPerl ? stdenv.hostPlatform == stdenv.buildPlatform
10}:
1112assert (
···42 substituteInPlace "$a" \
43 --replace /bin/rm rm
44 done
45+ ''
46+ # config is a configure script which is not installed.
47+ + optionalString (versionAtLeast version "1.1.1") ''
48+ substituteInPlace config --replace '/usr/bin/env' '${buildPackages.coreutils}/bin/env'
49 '' + optionalString (versionAtLeast version "1.1.0" && stdenv.hostPlatform.isMusl) ''
50 substituteInPlace crypto/async/arch/async_posix.h \
51 --replace '!defined(__ANDROID__) && !defined(__OpenBSD__)' \