nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ stdenv, mkDerivation, lib, fetchFromGitHub, fetchpatch, autoreconfHook, pkg-config
2, libtool, openssl, qtbase, qttools, sphinx }:
3
4mkDerivation rec {
5 pname = "xca";
6 version = "2.4.0";
7
8 src = fetchFromGitHub {
9 owner = "chris2511";
10 repo = "xca";
11 rev = "RELEASE.${version}";
12 sha256 = "04z0mmjsry72nvib4icmwh1717y4q9pf2gr68ljrzln4vv4ckpwk";
13 };
14
15 # Adaptions to stay OpenSSL 3.0 compatible
16 patches = [ (fetchpatch {
17 url = "https://github.com/chris2511/xca/commit/f5ac099e948ea354deac75ff9fa09d51453476e1.patch";
18 hash = "sha256-4rRO2y9hZq879HTsgBgbXGRYEcgfG4niJKyK3l3PMZ8=";
19 }) ];
20
21 buildInputs = [ libtool openssl qtbase ];
22
23 nativeBuildInputs = [ autoreconfHook pkg-config qttools sphinx ];
24
25 # Needed for qcollectiongenerator (see https://github.com/NixOS/nixpkgs/pull/92710)
26 QT_PLUGIN_PATH = "${qtbase}/${qtbase.qtPluginPrefix}";
27
28 enableParallelBuilding = true;
29
30 meta = with lib; {
31 broken = stdenv.isDarwin;
32 description = "An x509 certificate generation tool, handling RSA, DSA and EC keys, certificate signing requests (PKCS#10) and CRLs";
33 homepage = "https://hohnstaedt.de/xca/";
34 license = licenses.bsd3;
35 maintainers = with maintainers; [ offline peterhoeg ];
36 platforms = platforms.all;
37 };
38}