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:
parent
69064cb3de
commit
38c223f0f2
2 changed files with 50 additions and 0 deletions
48
pkgs/development/libraries/sexp/default.nix
Normal file
48
pkgs/development/libraries/sexp/default.nix
Normal 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 ];
|
||||
};
|
||||
})
|
|
@ -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 { };
|
||||
|
|
Loading…
Reference in a new issue