1 { lib, stdenv, fetchurl, cmake, openssl, pkg-config, qtbase }:
3 stdenv.mkDerivation rec {
8 url = "http://download.kde.org/stable/qca/${version}/qca-${version}.tar.xz";
9 sha256 = "sha256-7lnVMdS4L7FoX02NdMLKoHd/UBgA90JuqjchCaQwUkk=";
12 buildInputs = [ openssl qtbase ];
13 nativeBuildInputs = [ cmake pkg-config ];
15 dontWrapQtApps = true;
17 # tells CMake to use this CA bundle file if it is accessible
18 preConfigure = "export QC_CERTSTORE_PATH=/etc/ssl/certs/ca-certificates.crt";
20 # tricks CMake into using this CA bundle file if it is not accessible (in a sandbox)
21 cmakeFlags = [ "-Dqca_CERTSTORE=/etc/ssl/certs/ca-certificates.crt" ];
24 description = "Qt 5 Cryptographic Architecture";
25 homepage = "http://delta.affinix.com/qca";
26 maintainers = with maintainers; [ ttuegel ];
27 license = licenses.lgpl21Plus;
28 platforms = with platforms; unix;