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
59 lines
1.6 KiB
Nix
59 lines
1.6 KiB
Nix
{
|
|
lib,
|
|
fetchFromGitLab,
|
|
nettle,
|
|
nix-update-script,
|
|
rustPlatform,
|
|
pkg-config,
|
|
installShellFiles,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "sequoia-sqv";
|
|
version = "1.3.0";
|
|
|
|
src = fetchFromGitLab {
|
|
owner = "sequoia-pgp";
|
|
repo = "sequoia-sqv";
|
|
rev = "v${version}";
|
|
hash = "sha256-xkvCEHVyRf1tQ/oo6Hg4Nri2WxdmH0fZFX24CPwJpZQ=";
|
|
};
|
|
|
|
cargoHash = "sha256-ZynvC4t9NBri5gc9lt2tHd/45V6QsKHbZb7HjHUQQUI=";
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
rustPlatform.bindgenHook
|
|
installShellFiles
|
|
];
|
|
|
|
buildInputs = [
|
|
nettle
|
|
];
|
|
# Install shell completion files and manual pages. Unfortunately it is hard to
|
|
# predict the paths to all of these files generated during the build, and it
|
|
# is impossible to control these using `$OUT_DIR` or alike, as implied by
|
|
# upstream's `build.rs`. This is a general Rust issue also discussed in
|
|
# https://github.com/rust-lang/cargo/issues/9661, also discussed upstream at:
|
|
# https://gitlab.com/sequoia-pgp/sequoia-wot/-/issues/56
|
|
postInstall = ''
|
|
installManPage target/*/release/build/*/out/man-pages/sqv.1
|
|
installShellCompletion --cmd sqv \
|
|
--zsh target/*/release/build/*/out/shell-completions/_sqv \
|
|
--bash target/*/release/build/*/out/shell-completions/sqv.bash \
|
|
--fish target/*/release/build/*/out/shell-completions/sqv.fish
|
|
'';
|
|
|
|
doCheck = true;
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
meta = {
|
|
description = "Command-line OpenPGP signature verification tool";
|
|
homepage = "https://docs.sequoia-pgp.org/sqv/";
|
|
license = lib.licenses.gpl2Plus;
|
|
maintainers = with lib.maintainers; [ doronbehar ];
|
|
mainProgram = "sqv";
|
|
};
|
|
}
|