17 stdenv.mkDerivation (finalAttrs: {
21 src = fetchFromGitHub {
24 rev = "v${finalAttrs.version}";
25 hash = "sha256-jUh7BxRnB6KePCk1jIvKzXgxSmWdKlQYmxshZZY4SBQ";
28 buildInputs = [ zlib bzip2 json_c botan3 sexpp ];
34 "-DCMAKE_INSTALL_PREFIX=${placeholder "out"}"
35 "-DBUILD_SHARED_LIBS=on"
37 "-DDOWNLOAD_GTEST=off"
38 "-DDOWNLOAD_RUBYRNP=off"
39 "-DSYSTEM_LIBSEXPP=on"
42 nativeBuildInputs = [ asciidoctor cmake gnupg gtest pkg-config python3 ];
44 # NOTE: check-only inputs should ideally be moved to nativeCheckInputs, but it
45 # would fail during buildPhase.
46 # nativeCheckInputs = [ gtest python3 ];
48 outputs = [ "out" "lib" "dev" ];
51 echo "v${finalAttrs.version}" > version.txt
55 homepage = "https://github.com/rnpgp/rnp";
56 description = "High performance C++ OpenPGP library, fully compliant to RFC 4880";
57 license = licenses.bsd2;
58 platforms = platforms.all;
59 maintainers = with maintainers; [ ribose-jeffreylau ];