nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 fetchFromGitLab,
5 cmake,
6 pkg-config,
7 arpa2cm,
8 arpa2common,
9 db,
10 gnutls,
11 ldns,
12 libkrb5,
13 libtasn1,
14 openldap,
15 p11-kit,
16 quickder,
17 unbound,
18 openssl,
19 gitUpdater,
20}:
21
22stdenv.mkDerivation (finalAttrs: {
23 pname = "tlspool";
24 version = "0.9.7";
25
26 src = fetchFromGitLab {
27 owner = "arpa2";
28 repo = "tlspool";
29 tag = "v${finalAttrs.version}";
30 hash = "sha256-nODnRoFlgCTtBjPief9SkVlLgD3g+2zbwM0V9pt3Crk=";
31 };
32
33 strictDeps = true;
34
35 nativeBuildInputs = [
36 cmake
37 pkg-config
38 libkrb5
39 ];
40
41 buildInputs = [
42 arpa2cm
43 arpa2common
44 db
45 gnutls
46 ldns
47 libkrb5
48 libtasn1
49 openldap
50 p11-kit
51 quickder
52 unbound
53 openssl
54 ];
55
56 passthru.updateScript = gitUpdater { rev-prefix = "v"; };
57
58 meta = {
59 description = "TLS daemon with PKCS #11 backend";
60 homepage = "https://gitlab.com/arpa2/tlspool";
61 changelog = "https://gitlab.com/arpa2/tlspool/-/blob/v${finalAttrs.version}/CHANGES";
62 license = with lib.licenses; [
63 gpl3Plus # daemon
64 cc-by-sa-40 # docs
65 bsd2 # userspace
66 ];
67 teams = with lib.teams; [ ngi ];
68 maintainers = with lib.maintainers; [ ethancedwards8 ];
69 platforms = lib.platforms.linux;
70 mainProgram = "tlsserver";
71 };
72})