qca2 and qca-qt5: use system CA certificates

CMakeLists.txt looks for the system CA bundle in several locations,
including /etc/ssl/certs/ca-certificates.crt.
This works for non-sandboxed builds but fails inside a sandbox.
This commit is contained in:
Andrey Golovizin 2018-01-05 10:59:00 +01:00
parent e5d9d61d65
commit c9545d8c90
2 changed files with 12 additions and 0 deletions

View file

@ -11,6 +11,12 @@ stdenv.mkDerivation rec {
buildInputs = [ openssl qtbase ];
nativeBuildInputs = [ cmake pkgconfig ];
# tells CMake to use this CA bundle file if it is accessible
preConfigure = ''export QC_CERTSTORE_PATH=/etc/ssl/certs/ca-certificates.crt'';
# tricks CMake into using this CA bundle file if it is not accessible (in a sandbox)
cmakeFlags = [ "-Dqca_CERTSTORE=/etc/ssl/certs/ca-certificates.crt" ];
meta = with stdenv.lib; {
description = "Qt 5 Cryptographic Architecture";
homepage = http://delta.affinix.com/qca;

View file

@ -14,6 +14,12 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true;
# tells CMake to use this CA bundle file if it is accessible
preConfigure = ''export QC_CERTSTORE_PATH=/etc/ssl/certs/ca-certificates.crt'';
# tricks CMake into using this CA bundle file if it is not accessible (in a sandbox)
cmakeFlags = [ "-Dqca_CERTSTORE=/etc/ssl/certs/ca-certificates.crt" ];
meta = with stdenv.lib; {
description = "Qt Cryptographic Architecture";
license = "LGPL";