10 rustPlatform.buildRustPackage rec {
11 pname = "sequoia-sqop";
14 src = fetchFromGitLab {
15 owner = "sequoia-pgp";
16 # From some reason the repository is not sequoia-sqop - like the command
20 hash = "sha256-JgLozj9LZwk6TRHj2d4kiq8j3aILBUWaE9ldzvlTBNs=";
23 cargoHash = "sha256-Z0UqJRm4QepMl83zE1TI7g/pc7b9XxUWeaMVVrp0zZ8=";
27 rustPlatform.bindgenHook
34 buildFeatures = [ "cli" ];
36 # Install manual pages
38 mkdir -p $out/share/man
39 cp -r man-sqop $out/share/man/man1
40 installShellCompletion --cmd sqop \
41 --bash target/*/release/build/sequoia-sop*/out/sqop.bash \
42 --fish target/*/release/build/sequoia-sop*/out/sqop.fish \
43 --zsh target/*/release/build/sequoia-sop*/out/_sqop
44 # Also elv and powershell are generated there
49 passthru.updateScript = nix-update-script { };
52 description = "Implementation of the Stateless OpenPGP Command Line Interface using Sequoia";
53 homepage = "https://docs.sequoia-pgp.org/sqop/";
54 license = lib.licenses.gpl2Plus;
55 maintainers = with lib.maintainers; [ doronbehar ];