sequoia-sq: 0.32.0 -> 0.34.0

This commit is contained in:
Minijackson 2024-03-01 15:13:20 +01:00
parent 8993b6835a
commit b8abf67c26
No known key found for this signature in database
GPG Key ID: FEA888C9F5D64F62

View File

@ -6,26 +6,30 @@
, nix-update-script
, rustPlatform
, pkg-config
, capnproto
, installShellFiles
, openssl
, sqlite
}:
rustPlatform.buildRustPackage rec {
pname = "sequoia-sq";
version = "0.32.0";
version = "0.34.0";
src = fetchFromGitLab {
owner = "sequoia-pgp";
repo = "sequoia-sq";
rev = "v${version}";
hash = "sha256-2a6LIW5ohSi7fbMwk/wmNJ0AOz5JIXiXJI7EoVKv1Sk=";
hash = "sha256-voFektWZnkmIQzI7s5nKzVVWQtEhzk2GKtxX926RtxU=";
};
cargoHash = "sha256-beA0viJVDjfANsPegkc/x2syVp8uGKTMnrPcM7jcvG4=";
cargoHash = "sha256-3ncBpRi0v6g6wwPkSASDwt0d8cOOAUv9BwZaYvnif1U=";
nativeBuildInputs = [
pkg-config
rustPlatform.bindgenHook
capnproto
installShellFiles
];
buildInputs = [
@ -41,14 +45,19 @@ rustPlatform.buildRustPackage rec {
"--skip=macros::time_it"
];
# Install manual pages, see https://gitlab.com/sequoia-pgp/sequoia-sq#building
postInstall = ''
mkdir -p $out/share/man
SQ_MAN=$out/share/man/man1 cargo run
'';
env.ASSET_OUT_DIR = "/tmp/";
doCheck = true;
postInstall = ''
installManPage /tmp/man-pages/*.*
installShellCompletion \
--cmd sq \
--bash /tmp/shell-completions/sq.bash \
--fish /tmp/shell-completions/sq.fish \
--zsh /tmp/shell-completions/_sq
'';
passthru.updateScript = nix-update-script { };
meta = with lib; {