ports/openssl.nix
λlib, fetchurl, path, perl, stdenv, zlib, withSafeAssembly?, …
| lib | |
| fetchurl | |
| path | |
| perl | |
| stdenv | |
| zlib | |
| withSafeAssembly | default false |
stdenv.mkDerivation
rec
NIX_SSL_CERT_FILE overrides the default CA file, as in Nixpkgs.
./patch/openssl-3.5.7.patch "${path}/pkgs/development/libraries/openssl/3.0/nix-ssl-cert-file.patch"
"out"
"dev"
"bin"
"man"
false
Don't let stdenv add --bindir/--libdir flagspatchShebangs Configure config
The older port uses runtime forwarders into ordinary assembly. They cover the x86_64 assembly only, so aarch64 builds the C implementations.
makeFlags = [
"MANDIR=$(man)/share/man" "MANSUFFIX=ssl"
];
true
false
skip man pages, takes a long time and you already have them
"install_sw" "install_ssldirs"
mkdir -p $bin
mv $out/bin $bin/bin
mkdir -p $dev
mv $out/include $dev/
rm -rf $out/etc/ssl/misc
rmdir $out/etc/ssl/{certs,private}
# OPENSSLDIR is this store path. Its default CA file is the system's,
# as Nixpkgs' use-etc-ssl-certs.patch makes it; a relocated tree such
# as optfil puts its own bundle here instead.
ln -s /etc/ssl/certs/ca-certificates.crt $out/etc/ssl/cert.pem
rm -rf $dev/lib/cmake