mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-02 04:50:21 +00:00
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 commitd8c6a48180) Co-authored-by: Jeffrey Lau <jeffrey.lau@ribose.com>
This commit is contained in:
committed by
GitHub
parent
fb061941ae
commit
ebc78bce36
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 ];
|
||||
};
|
||||
})
|
||||
@@ -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 { };
|
||||
|
||||
Reference in New Issue
Block a user