47 lines
946 B
Nix
47 lines
946 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
rustPlatform,
|
|
fetchFromGitLab,
|
|
pkg-config,
|
|
nettle,
|
|
openssl,
|
|
sqlite,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "sequoia-chameleon-gnupg";
|
|
version = "0.12.0";
|
|
|
|
src = fetchFromGitLab {
|
|
owner = "sequoia-pgp";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-2EJDpiNYrNh8Ojhs6jSsaLV5zKExShiIor3/Tjue+y8=";
|
|
};
|
|
|
|
useFetchCargoVendor = true;
|
|
cargoHash = "sha256-DKMz8unxxH4crjN8X1Ulh61jBtFSTVNrzFBkEs0RnGM=";
|
|
|
|
nativeBuildInputs = [
|
|
rustPlatform.bindgenHook
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = [
|
|
nettle
|
|
openssl
|
|
sqlite
|
|
];
|
|
|
|
# gpgconf: error creating socket directory
|
|
doCheck = false;
|
|
|
|
meta = with lib; {
|
|
description = "Sequoia's reimplementation of the GnuPG interface";
|
|
homepage = "https://gitlab.com/sequoia-pgp/sequoia-chameleon-gnupg";
|
|
license = licenses.gpl3Plus;
|
|
maintainers = with maintainers; [ nickcao ];
|
|
mainProgram = "gpg-sq";
|
|
};
|
|
}
|