16 stdenv.mkDerivation rec {
20 src = fetchFromGitHub {
24 sha256 = "sha256-KHItrpuKXaLGF1mcpju/RJFnm2yPZyYq4eIoRGqf5Y8=";
27 buildInputs = [ zlib bzip2 json_c botan2 ];
30 "-DCMAKE_INSTALL_PREFIX=${placeholder "out"}"
31 "-DBUILD_SHARED_LIBS=on"
33 "-DDOWNLOAD_GTEST=off"
34 "-DDOWNLOAD_RUBYRNP=off"
37 nativeBuildInputs = [ asciidoctor cmake gnupg gtest pkg-config python3 ];
39 # NOTE: check-only inputs should ideally be moved to checkInputs, but it
40 # would fail during buildPhase.
41 # checkInputs = [ gtest python3 ];
43 outputs = [ "out" "lib" "dev" ];
46 echo "v${version}" > version.txt
50 homepage = "https://github.com/rnpgp/rnp";
51 description = "High performance C++ OpenPGP library, fully compliant to RFC 4880";
52 license = licenses.bsd2;
53 platforms = platforms.all;
54 maintainers = with maintainers; [ ribose-jeffreylau ];