sequoia-git: init at 0.5.0 (#505071)

This commit is contained in:
Matthias Beyer
2026-03-31 15:19:43 +00:00
committed by GitHub
+61
View File
@@ -0,0 +1,61 @@
{
lib,
rustPlatform,
fetchFromGitLab,
openssl,
nettle,
sqlite,
pkg-config,
installShellFiles,
gnupg,
gitMinimal,
libfaketime,
...
}:
rustPlatform.buildRustPackage rec {
pname = "sequoia-git";
version = "0.5.0";
src = fetchFromGitLab {
owner = "sequoia-pgp";
repo = "sequoia-git";
rev = "v${version}";
hash = "sha256-7ynaz48j/ebQAZ2QxeWwkf7kFP70HKtHCv4/wGxxaVY=";
};
cargoHash = "sha256-+sIH4zFLewNNkpd42co2B0rLrIsde5gsBDsqSSc0HZQ=";
buildInputs = [
openssl.dev
nettle.dev
sqlite.dev
];
nativeBuildInputs = [
pkg-config
rustPlatform.bindgenHook
installShellFiles
];
nativeCheckInputs = [
gnupg
gitMinimal
libfaketime
];
env.ASSET_OUT_DIR = "target";
postInstall = ''
installManPage ${env.ASSET_OUT_DIR}/man-pages/*.1
installShellCompletion --bash ${env.ASSET_OUT_DIR}/shell-completions/${meta.mainProgram}.bash
installShellCompletion --zsh ${env.ASSET_OUT_DIR}/shell-completions/_${meta.mainProgram}
installShellCompletion --fish ${env.ASSET_OUT_DIR}/shell-completions/${meta.mainProgram}.fish
'';
meta = {
homepage = "https://sequoia-pgp.gitlab.io/sequoia-git";
license = lib.licenses.lgpl2Plus;
maintainers = [ lib.maintainers.matthiasbeyer ];
mainProgram = "sq-git";
};
}