Files
nixpkgs/pkgs/applications/misc/xca/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

62 lines
1.3 KiB
Nix

{
stdenv,
lib,
fetchFromGitHub,
wrapQtAppsHook,
cmake,
pkg-config,
openssl,
qtbase,
qttools,
sphinx,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "xca";
version = "2.9.0";
src = fetchFromGitHub {
owner = "chris2511";
repo = "xca";
rev = "RELEASE.${finalAttrs.version}";
hash = "sha256-28K6luMuYcDuNKd/aQG9HX9VN5YkKArl/GQn5spQ+Sg=";
};
buildInputs = [
openssl
qtbase
];
nativeBuildInputs = [
cmake
pkg-config
qttools
sphinx
wrapQtAppsHook
];
# Needed for qcollectiongenerator (see https://github.com/NixOS/nixpkgs/pull/92710)
QT_PLUGIN_PATH = "${qtbase}/${qtbase.qtPluginPrefix}";
enableParallelBuilding = true;
dontWrapQtApps = stdenv.hostPlatform.isDarwin;
postInstall = lib.optionalString stdenv.hostPlatform.isDarwin ''
mkdir -p "$out/Applications"
mv "$out/xca.app" "$out/Applications/xca.app"
'';
meta = with lib; {
description = "X509 certificate generation tool, handling RSA, DSA and EC keys, certificate signing requests (PKCS#10) and CRLs";
mainProgram = "xca";
homepage = "https://hohnstaedt.de/xca/";
license = licenses.bsd3;
maintainers = with maintainers; [
offline
peterhoeg
];
inherit (qtbase.meta) platforms;
};
})