Files
nixpkgs/pkgs/development/libraries/qca/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01: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 = {
description = "Qt Cryptographic Architecture";
homepage = "https://invent.kde.org/libraries/qca";
maintainers = with lib.maintainers; [ ttuegel ];
license = lib.licenses.lgpl21Plus;
platforms = with lib.platforms; unix;
};
}