diff options
author | worldofpeace <worldofpeace@protonmail.ch> | 2019-07-29 03:32:04 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-29 03:32:04 -0400 |
commit | 872b55a8c1c7fa110f26d5f29a8dc45f43bb267d (patch) | |
tree | c0ff711598dd662fcd1068e154f903192ad545f6 /pkgs/tools/security | |
parent | 22d000f062ab5aa20e9fd2ec914e8761b816b6e6 (diff) | |
parent | c9fe80a67f1638124e1efa21e0c128daf466c695 (diff) | |
download | nixlib-872b55a8c1c7fa110f26d5f29a8dc45f43bb267d.tar nixlib-872b55a8c1c7fa110f26d5f29a8dc45f43bb267d.tar.gz nixlib-872b55a8c1c7fa110f26d5f29a8dc45f43bb267d.tar.bz2 nixlib-872b55a8c1c7fa110f26d5f29a8dc45f43bb267d.tar.lz nixlib-872b55a8c1c7fa110f26d5f29a8dc45f43bb267d.tar.xz nixlib-872b55a8c1c7fa110f26d5f29a8dc45f43bb267d.tar.zst nixlib-872b55a8c1c7fa110f26d5f29a8dc45f43bb267d.zip |
Merge pull request #63655 from minijackson/init-sequoia-tool
sequoia-tool: init at 0.9.0
Diffstat (limited to 'pkgs/tools/security')
-rw-r--r-- | pkgs/tools/security/sequoia-tool/default.nix | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/tools/security/sequoia-tool/default.nix b/pkgs/tools/security/sequoia-tool/default.nix new file mode 100644 index 000000000000..00472c1a3aa4 --- /dev/null +++ b/pkgs/tools/security/sequoia-tool/default.nix @@ -0,0 +1,32 @@ +{ stdenv, fetchFromGitLab, rustPlatform, darwin +, pkgconfig, capnproto, clang, libclang, nettle, openssl, sqlite }: + +rustPlatform.buildRustPackage rec { + pname = "sequoia-tool"; + version = "0.9.0"; + + src = fetchFromGitLab { + owner = "sequoia-pgp"; + repo = "sequoia"; + rev = "v${version}"; + sha256 = "13dzwdzz33dy2lgnznsv8wqnw2501f2ggrkfwpqy5x6d1kgms8rj"; + }; + + nativeBuildInputs = [ pkgconfig clang libclang ]; + buildInputs = [ capnproto nettle openssl sqlite ] + ++ stdenv.lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.Security ]; + + LIBCLANG_PATH = libclang + "/lib"; + + cargoBuildFlags = [ "--package=sequoia-tool" ]; + + cargoSha256 = "1zcnkpzcar3a2fk2rn3i3nb70b59ds9fpfa44f15r3aaxajsdhdi"; + + meta = with stdenv.lib; { + description = "A command-line frontend for Sequoia, an implementation of OpenPGP"; + homepage = https://sequoia-pgp.org/; + license = licenses.gpl3; + maintainers = with maintainers; [ minijackson ]; + platforms = platforms.all; + }; +} |