Skip to content

Commit

Permalink
sexp: init at 0.8.6 (#240253)
Browse files Browse the repository at this point in the history
This is a dependency of the [next version](https://github.com/rnpgp/rnp/releases/tag/v0.17.0)
of [rnp](https://github.com/NixOS/nixpkgs/blob/a04b45f10eddb02352574d95c7d0a76bfbfc11dc/pkgs/tools/security/rnp/default.nix#L17).

(cherry picked from commit d8c6a48)

Co-authored-by: Jeffrey Lau <jeffrey.lau@ribose.com>
  • Loading branch information
github-actions[bot] and ribose-jeffreylau authored Jun 28, 2023
1 parent 883a7b2 commit 6838557
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 0 deletions.
48 changes: 48 additions & 0 deletions pkgs/development/libraries/sexp/default.nix
Original file line number Diff line number Diff line change
@@ -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 ];
};
})
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12231,6 +12231,8 @@ with pkgs;

sewer = callPackage ../tools/admin/sewer { };

sexp = callPackage ../development/libraries/sexp { };

sfeed = callPackage ../tools/misc/sfeed { };

sftpman = callPackage ../tools/filesystems/sftpman { };
Expand Down

0 comments on commit 6838557

Please sign in to comment.