11 stdenv.mkDerivation (finalAttrs: {
15 src = fetchFromGitHub {
18 rev = "v${finalAttrs.version}";
19 hash = "sha256-E1ESN3JKCWYBt1o37d7EVcgARnwGKS6mxua+0m1RMlM=";
22 buildInputs = [ zlib bzip2 ];
25 "-DCMAKE_INSTALL_PREFIX=${placeholder "out"}"
26 "-DBUILD_SHARED_LIBS=on"
27 "-DWITH_SEXP_TESTS=on"
28 "-DDOWNLOAD_GTEST=off"
30 "-DWITH_SANITIZERS=off"
33 nativeBuildInputs = [ cmake gtest pkg-config ];
35 outputs = [ "out" "lib" "dev" ];
38 echo "v${finalAttrs.version}" > version.txt
42 homepage = "https://github.com/rnpgp/sexp";
43 description = "S-expressions parser and generator C++ library, fully compliant to [https://people.csail.mit.edu/rivest/Sexp.txt]";
44 license = licenses.mit;
45 platforms = platforms.all;
46 maintainers = with maintainers; [ ribose-jeffreylau ];