blob: e2397c5413dbda4489e5f4cfaa7c6d51bc0892ef (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
{ stdenv
, fetchFromGitLab
, lib
, darwin
, nettle
, nix-update-script
, rustPlatform
, pkg-config
, pcsclite
, openssl
, gnupg
, sqlite
}:
rustPlatform.buildRustPackage rec {
pname = "openpgp-ca";
version = "0.14.0";
src = fetchFromGitLab {
owner = "openpgp-ca";
repo = "openpgp-ca";
rev = "openpgp-ca/v${version}";
hash = "sha256-71SApct2yQV3ueWDlZv7ScK1s0nWWS57cPCvoMutlLA=";
};
cargoHash = "sha256-L0Z+Oxov0y+PipdXz8/3Y0MKYhr/lNYurphc9s0K+Dg=";
nativeBuildInputs = [
pkg-config
rustPlatform.bindgenHook
];
nativeCheckInputs = [
gnupg
];
buildInputs = [
openssl
sqlite
pcsclite
nettle
] ++ lib.optionals stdenv.hostPlatform.isDarwin (with darwin.apple_sdk.frameworks; [ PCSC Security SystemConfiguration ]);
# Most tests rely on gnupg being able to write to /run/user
# gnupg refuses to respect the XDG_RUNTIME_DIR variable, so we skip the tests
doCheck = false;
passthru.updateScript = nix-update-script { };
meta = with lib; {
description = "Tool for managing OpenPGP keys within organizations";
homepage = "https://openpgp-ca.org/";
changelog = "https://openpgp-ca.org/doc/changelog/";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ cherrykitten ];
mainProgram = "oca";
};
}
|