sexp: init at 0.8.6 (#239889)

This is a dependency of the [next version](https://github.com/rnpgp/rnp/releases/tag/v0.17.0)
of [rnp](a04b45f10e/pkgs/tools/security/rnp/default.nix (L17)).
This commit is contained in:
Jeffrey Lau 2023-06-28 11:11:51 +08:00 committed by GitHub
parent 69064cb3de
commit 38c223f0f2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 50 additions and 0 deletions

View file

@ -0,0 +1,48 @@
{ lib
, stdenv
, bzip2
, cmake
, fetchFromGitHub
, gtest
, pkg-config
, zlib
}:
stdenv.mkDerivation (finalAttrs: {
pname = "sexp";
version = "0.8.6";
src = fetchFromGitHub {
owner = "rnpgp";
repo = "sexp";
rev = "v${finalAttrs.version}";
hash = "sha256-NpDSoBxEM8g/SugLmT8E5+YZPDFIGHa4eXLjdzQxaiw=";
};
buildInputs = [ zlib bzip2 ];
cmakeFlags = [
"-DCMAKE_INSTALL_PREFIX=${placeholder "out"}"
"-DBUILD_SHARED_LIBS=on"
"-DWITH_SEXP_TESTS=on"
"-DDOWNLOAD_GTEST=off"
"-DWITH_SEXP_CLI=on"
"-DWITH_SANITIZERS=off"
];
nativeBuildInputs = [ cmake gtest pkg-config ];
outputs = [ "out" "lib" "dev" ];
preConfigure = ''
echo "v${finalAttrs.version}" > version.txt
'';
meta = with lib; {
homepage = "https://github.com/rnpgp/sexp";
description = "S-expressions parser and generator C++ library, fully compliant to [https://people.csail.mit.edu/rivest/Sexp.txt]";
license = licenses.mit;
platforms = platforms.all;
maintainers = with maintainers; [ ribose-jeffreylau ];
};
})

View file

@ -12453,6 +12453,8 @@ with pkgs;
sewer = callPackage ../tools/admin/sewer { };
sexp = callPackage ../development/libraries/sexp { };
sfeed = callPackage ../tools/misc/sfeed { };
sftpman = callPackage ../tools/filesystems/sftpman { };