10 rustPlatform.buildRustPackage rec {
11 pname = "sequoia-sqv";
14 src = fetchFromGitLab {
15 owner = "sequoia-pgp";
18 hash = "sha256-frGukJDsxq+BWLPC/4imfc42lDKVF8BPIQQDazaLaQ0=";
21 cargoHash = "sha256-1h1nXtXMTwL8ICxWTV8My0IdE+6w0L7xXZD012Cv5U8=";
25 rustPlatform.bindgenHook
32 # Install shell completion files and manual pages. Unfortunatly it is hard to
33 # predict the paths to all of these files generated during the build, and it
34 # is impossible to control these using `$OUT_DIR` or alike, as implied by
35 # upstream's `build.rs`. This is a general Rust issue also discussed in
36 # https://github.com/rust-lang/cargo/issues/9661, also discussed upstream at:
37 # https://gitlab.com/sequoia-pgp/sequoia-wot/-/issues/56
39 installManPage target/*/release/build/*/out/man-pages/sqv.1
40 installShellCompletion --cmd sqv \
41 --zsh target/*/release/build/*/out/shell-completions/_sqv \
42 --bash target/*/release/build/*/out/shell-completions/sqv.bash \
43 --fish target/*/release/build/*/out/shell-completions/sqv.fish
48 passthru.updateScript = nix-update-script { };
51 description = "Command-line OpenPGP signature verification tool";
52 homepage = "https://docs.sequoia-pgp.org/sqv/";
53 license = lib.licenses.gpl2Plus;
54 maintainers = with lib.maintainers; [ doronbehar ];