diff options
author | Andrey Golovizin <ag@sologoc.com> | 2018-01-05 10:59:00 +0100 |
---|---|---|
committer | Andrey Golovizin <ag@sologoc.com> | 2018-01-08 10:31:34 +0100 |
commit | c9545d8c905a34cfbc0b1344d6998d9cc2ee03dd (patch) | |
tree | 6d1c98bbafa0d19f25044df81233830bf3a8c54e /pkgs/development/libraries/qca-qt5 | |
parent | e5d9d61d6525d6dc2f3628b9d731e3e95772447a (diff) |
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.
Diffstat (limited to 'pkgs/development/libraries/qca-qt5')
-rw-r--r-- | pkgs/development/libraries/qca-qt5/default.nix | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/development/libraries/qca-qt5/default.nix b/pkgs/development/libraries/qca-qt5/default.nix index 9433eb87109fc..0ea58e6c434fa 100644 --- a/pkgs/development/libraries/qca-qt5/default.nix +++ b/pkgs/development/libraries/qca-qt5/default.nix @@ -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; |