Files
nixpkgs/pkgs/by-name/se/sequoia-sqop/package.nix
Dark Steveneq 646b892680
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
push sheeet
2025-10-09 14:15:47 +02:00

60 lines
1.4 KiB
Nix

{
lib,
fetchFromGitLab,
nettle,
nix-update-script,
installShellFiles,
rustPlatform,
pkg-config,
}:
rustPlatform.buildRustPackage rec {
pname = "sequoia-sqop";
version = "0.35.0";
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}";
hash = "sha256-JgLozj9LZwk6TRHj2d4kiq8j3aILBUWaE9ldzvlTBNs=";
};
cargoHash = "sha256-Cg07SlNmG6ELZmoQfkr6ADrGJirbFm0D1Iko1WVNfl0=";
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 = {
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 ];
mainProgram = "sqop";
};
}