Files
nixpkgs/pkgs/development/libraries/qca/default.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

53 lines
1.1 KiB
Nix

{
lib,
stdenv,
fetchurl,
cmake,
openssl,
pkg-config,
qtbase,
qt5compat ? null,
}:
let
isQt6 = lib.versions.major qtbase.version == "6";
in
stdenv.mkDerivation rec {
pname = "qca";
version = "2.3.10";
src = fetchurl {
url = "mirror://kde/stable/qca/${version}/qca-${version}.tar.xz";
sha256 = "sha256-HFtyLak9VZNlcZImuxIccm7DwNxMZ96jTx5Q5ODRSgI=";
};
buildInputs = [
openssl
qtbase
qt5compat
];
nativeBuildInputs = [
cmake
pkg-config
];
dontWrapQtApps = true;
# tells CMake to use this CA bundle file if it is accessible
preConfigure = "export QC_CERTSTORE_PATH=/etc/ssl/certs/ca-certificates.crt";
cmakeFlags = [
(lib.cmakeBool "QT6" isQt6)
# tricks CMake into using this CA bundle file if it is not accessible (in a sandbox)
"-Dqca_CERTSTORE=/etc/ssl/certs/ca-certificates.crt"
];
meta = with lib; {
description = "Qt Cryptographic Architecture";
homepage = "https://invent.kde.org/libraries/qca";
maintainers = with maintainers; [ ttuegel ];
license = licenses.lgpl21Plus;
platforms = with platforms; unix;
};
}