Merge pull request #118744 from rnpgp/rnp

This commit is contained in:
Sandro 2021-06-09 12:57:28 +02:00 committed by GitHub
commit 7e343d4ca0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 64 additions and 0 deletions

View file

@ -8595,6 +8595,12 @@
githubId = 6047658;
name = "Ryan Horiguchi";
};
ribose-jeffreylau = {
name = "Jeffrey Lau";
email = "jeffrey.lau@ribose.com";
github = "ribose-jeffreylau";
githubId = 2649467;
};
richardipsum = {
email = "richardipsum@fastmail.co.uk";
github = "richardipsum";

View file

@ -0,0 +1,56 @@
{ lib
, stdenv
, asciidoctor
, botan2
, bzip2
, cmake
, fetchFromGitHub
, gnupg
, gtest
, json_c
, pkg-config
, python3
, zlib
}:
stdenv.mkDerivation rec {
pname = "rnp";
version = "0.15.1";
src = fetchFromGitHub {
owner = "rnpgp";
repo = "rnp";
rev = "v${version}";
sha256 = "1l7y99rcss5w24lil6nqwr0dzh2jvq0qxmdvq7j5yx3fdssd5xsv";
};
buildInputs = [ zlib bzip2 json_c botan2 ];
cmakeFlags = [
"-DCMAKE_INSTALL_PREFIX=${placeholder "out"}"
"-DBUILD_SHARED_LIBS=on"
"-DBUILD_TESTING=on"
"-DDOWNLOAD_GTEST=off"
"-DDOWNLOAD_RUBYRNP=off"
];
nativeBuildInputs = [ asciidoctor cmake gnupg gtest pkg-config python3 ];
# NOTE: check-only inputs should ideally be moved to checkInputs, but it
# would fail during buildPhase.
# checkInputs = [ gtest python3 ];
outputs = [ "out" "lib" "dev" ];
preConfigure = ''
echo "v${version}" > version.txt
'';
meta = with lib; {
homepage = "https://github.com/rnpgp/rnp";
description = "High performance C++ OpenPGP library, fully compliant to RFC 4880";
license = licenses.bsd2;
platforms = platforms.all;
maintainers = with maintainers; [ ribose-jeffreylau ];
};
}

View file

@ -8318,6 +8318,8 @@ in
rnnoise-plugin = callPackage ../development/libraries/rnnoise-plugin {};
rnp = callPackage ../tools/security/rnp { };
rnv = callPackage ../tools/text/xml/rnv { };
rosie = callPackage ../tools/text/rosie { };