nixpkgs/pkgs/by-name/se/sequoia-sqop/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

59 lines
1.4 KiB
Nix
Raw Normal View History

{ lib
2023-06-27 08:11:29 +00:00
, fetchFromGitLab
, nettle
, nix-update-script
, installShellFiles
, rustPlatform
, pkg-config
}:
rustPlatform.buildRustPackage rec {
pname = "sequoia-sqop";
2024-07-14 09:27:17 +00:00
version = "0.35.0";
2023-06-27 08:11:29 +00:00
src = fetchFromGitLab {
owner = "sequoia-pgp";
# From some reason the repository is not sequoia-sqop - like the command
# generated etc
repo = "sequoia-sop";
rev = "v${version}";
2024-07-14 09:27:17 +00:00
hash = "sha256-JgLozj9LZwk6TRHj2d4kiq8j3aILBUWaE9ldzvlTBNs=";
2023-06-27 08:11:29 +00:00
};
2024-07-14 09:27:17 +00:00
cargoHash = "sha256-Z0UqJRm4QepMl83zE1TI7g/pc7b9XxUWeaMVVrp0zZ8=";
2023-06-27 08:11:29 +00:00
nativeBuildInputs = [
pkg-config
rustPlatform.bindgenHook
installShellFiles
];
buildInputs = [
nettle
];
buildFeatures = [ "cli" ];
# Install manual pages
postInstall = ''
mkdir -p $out/share/man
cp -r man-sqop $out/share/man/man1
installShellCompletion --cmd sqop \
--bash target/*/release/build/sequoia-sop*/out/sqop.bash \
--fish target/*/release/build/sequoia-sop*/out/sqop.fish \
--zsh target/*/release/build/sequoia-sop*/out/_sqop
# Also elv and powershell are generated there
'';
doCheck = true;
passthru.updateScript = nix-update-script { };
meta = {
2023-06-27 08:11:29 +00:00
description = "Implementation of the Stateless OpenPGP Command Line Interface using Sequoia";
homepage = "https://docs.sequoia-pgp.org/sqop/";
license = lib.licenses.gpl2Plus;
maintainers = with lib.maintainers; [ doronbehar ];
2023-06-27 08:11:29 +00:00
mainProgram = "sqop";
};
}