Merge pull request #68387 from d-goldin/libressl_fix_nc

libressl: fixing nc for version>=2.9
This commit is contained in:
Matthew Bauer 2019-09-17 17:42:57 -04:00 committed by GitHub
commit 8f2eb8042b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, lib, cmake }:
{ stdenv, fetchurl, lib, cmake, cacert }:
let
@ -31,6 +31,12 @@ let
rm configure
'';
# Since 2.9.x the default location can't be configured from the build using
# DEFAULT_CA_FILE anymore, instead we have to patch the default value.
postPatch = lib.optionalString (lib.versionAtLeast version "2.9.2") ''
substituteInPlace ./tls/tls_config.c --replace '"/etc/ssl/cert.pem"' '"${cacert}/etc/ssl/certs/ca-bundle.crt"'
'';
enableParallelBuilding = true;
outputs = [ "bin" "dev" "out" "man" "nc" ];