sexp: init at 0.8.6 (#240252)

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)).

(cherry picked from commit d8c6a48180)

Co-authored-by: Jeffrey Lau <jeffrey.lau@ribose.com>
This commit is contained in:
github-actions[bot]
2023-06-28 14:12:52 +02:00
committed by GitHub
parent fb061941ae
commit ebc78bce36
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

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