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
58 lines
1.2 KiB
Nix
58 lines
1.2 KiB
Nix
{
|
|
fetchFromGitLab,
|
|
lib,
|
|
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-uftsBw8ZegnaoFel/wEqCMhVxiGR13jKbKqVSm+23T4=";
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
rustPlatform.bindgenHook
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
gnupg
|
|
];
|
|
|
|
buildInputs = [
|
|
openssl
|
|
sqlite
|
|
pcsclite
|
|
nettle
|
|
];
|
|
|
|
# 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";
|
|
};
|
|
}
|