nixpkgs/pkgs/tools/security/sequoia-sq/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

63 lines
1.4 KiB
Nix
Raw Normal View History

{ stdenv
, fetchFromGitLab
, lib
, darwin
, nettle
, nix-update-script
, rustPlatform
, pkg-config
, openssl
, sqlite
}:
rustPlatform.buildRustPackage rec {
2023-06-26 10:14:33 +00:00
pname = "sequoia-sq";
2023-08-02 05:21:43 +00:00
version = "0.31.0";
src = fetchFromGitLab {
owner = "sequoia-pgp";
repo = "sequoia-sq";
rev = "v${version}";
2023-08-02 05:21:43 +00:00
hash = "sha256-rrNN52tDM3CEGyNvsT3x4GmfWIpU8yoT2XsgOhPyLjo=";
};
2023-08-02 05:21:43 +00:00
cargoHash = "sha256-B+gtUzUB99At+kusupsN/v6sCbpXs36/EbpTL3gUxnc=";
nativeBuildInputs = [
pkg-config
2023-05-27 23:33:12 +00:00
rustPlatform.bindgenHook
];
buildInputs = [
openssl
sqlite
nettle
] ++ lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.Security ];
# Sometimes, tests fail on CI (ofborg) & hydra without this
2022-07-21 02:57:22 +00:00
checkFlags = [
# doctest for sequoia-ipc fail for some reason
"--skip=macros::assert_send_and_sync"
"--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
'';
doCheck = true;
passthru.updateScript = nix-update-script { };
meta = with lib; {
description = "A cool new OpenPGP implementation";
homepage = "https://sequoia-pgp.org/";
changelog = "https://gitlab.com/sequoia-pgp/sequoia-sq/-/blob/v${version}/NEWS";
2021-08-31 15:10:47 +00:00
license = licenses.gpl2Plus;
maintainers = with maintainers; [ minijackson doronbehar ];
mainProgram = "sq";
};
}