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-wThREJq+/EYjNwmJ+uOnRb9rGss8KhOolYU5gj6XTks=";
12 buildInputs = [ openssl qtbase ];
13 nativeBuildInputs = [ cmake pkg-config ];
15 dontWrapQtApps = true;
17 # Without this patch cmake fails with a "No known features for CXX compiler"
19 patches = lib.optional stdenv.isDarwin ./move-project.patch ;
21 # tells CMake to use this CA bundle file if it is accessible
22 preConfigure = "export QC_CERTSTORE_PATH=/etc/ssl/certs/ca-certificates.crt";
24 # tricks CMake into using this CA bundle file if it is not accessible (in a sandbox)
25 cmakeFlags = [ "-Dqca_CERTSTORE=/etc/ssl/certs/ca-certificates.crt" ];
28 description = "Qt 5 Cryptographic Architecture";
29 homepage = "http://delta.affinix.com/qca";
30 maintainers = with maintainers; [ ttuegel ];
31 license = licenses.lgpl21Plus;
32 platforms = with platforms; unix;