nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 stdenv,
3 lib,
4 fetchFromGitHub,
5 wrapQtAppsHook,
6 cmake,
7 pkg-config,
8 openssl,
9 qtbase,
10 qttools,
11 sphinx,
12}:
13
14stdenv.mkDerivation (finalAttrs: {
15 pname = "xca";
16 version = "2.9.0";
17
18 src = fetchFromGitHub {
19 owner = "chris2511";
20 repo = "xca";
21 rev = "RELEASE.${finalAttrs.version}";
22 hash = "sha256-28K6luMuYcDuNKd/aQG9HX9VN5YkKArl/GQn5spQ+Sg=";
23 };
24
25 buildInputs = [
26 openssl
27 qtbase
28 ];
29
30 nativeBuildInputs = [
31 cmake
32 pkg-config
33 qttools
34 sphinx
35 wrapQtAppsHook
36 ];
37
38 # Needed for qcollectiongenerator (see https://github.com/NixOS/nixpkgs/pull/92710)
39 QT_PLUGIN_PATH = "${qtbase}/${qtbase.qtPluginPrefix}";
40
41 enableParallelBuilding = true;
42
43 dontWrapQtApps = stdenv.hostPlatform.isDarwin;
44
45 postInstall = lib.optionalString stdenv.hostPlatform.isDarwin ''
46 mkdir -p "$out/Applications"
47 mv "$out/xca.app" "$out/Applications/xca.app"
48 '';
49
50 meta = with lib; {
51 description = "X509 certificate generation tool, handling RSA, DSA and EC keys, certificate signing requests (PKCS#10) and CRLs";
52 mainProgram = "xca";
53 homepage = "https://hohnstaedt.de/xca/";
54 license = licenses.bsd3;
55 maintainers = with maintainers; [
56 offline
57 peterhoeg
58 ];
59 inherit (qtbase.meta) platforms;
60 };
61})