mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-12 00:33:10 +00:00
755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
59 lines
1.4 KiB
Nix
59 lines
1.4 KiB
Nix
{ lib
|
|
, fetchFromGitLab
|
|
, nettle
|
|
, nix-update-script
|
|
, installShellFiles
|
|
, rustPlatform
|
|
, pkg-config
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "sequoia-sqop";
|
|
version = "0.34.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-RpXMF0Q5Dp0zDt1gPl2Z3RKyDa4NI0uZY7kIc230F48=";
|
|
};
|
|
|
|
cargoHash = "sha256-ccEnZPFUYU5F1PqkX1u7K2xuWYShhzJwEOfBEbi53gg=";
|
|
|
|
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 = with lib; {
|
|
description = "Implementation of the Stateless OpenPGP Command Line Interface using Sequoia";
|
|
homepage = "https://docs.sequoia-pgp.org/sqop/";
|
|
license = licenses.gpl2Plus;
|
|
maintainers = with maintainers; [ doronbehar ];
|
|
mainProgram = "sqop";
|
|
};
|
|
}
|