+48
pkgs/development/libraries/sexp/default.nix
+48
pkgs/development/libraries/sexp/default.nix
···
1
+
{ lib
2
+
, stdenv
3
+
, bzip2
4
+
, cmake
5
+
, fetchFromGitHub
6
+
, gtest
7
+
, pkg-config
8
+
, zlib
9
+
}:
10
+
11
+
stdenv.mkDerivation (finalAttrs: {
12
+
pname = "sexp";
13
+
version = "0.8.6";
14
+
15
+
src = fetchFromGitHub {
16
+
owner = "rnpgp";
17
+
repo = "sexp";
18
+
rev = "v${finalAttrs.version}";
19
+
hash = "sha256-NpDSoBxEM8g/SugLmT8E5+YZPDFIGHa4eXLjdzQxaiw=";
20
+
};
21
+
22
+
buildInputs = [ zlib bzip2 ];
23
+
24
+
cmakeFlags = [
25
+
"-DCMAKE_INSTALL_PREFIX=${placeholder "out"}"
26
+
"-DBUILD_SHARED_LIBS=on"
27
+
"-DWITH_SEXP_TESTS=on"
28
+
"-DDOWNLOAD_GTEST=off"
29
+
"-DWITH_SEXP_CLI=on"
30
+
"-DWITH_SANITIZERS=off"
31
+
];
32
+
33
+
nativeBuildInputs = [ cmake gtest pkg-config ];
34
+
35
+
outputs = [ "out" "lib" "dev" ];
36
+
37
+
preConfigure = ''
38
+
echo "v${finalAttrs.version}" > version.txt
39
+
'';
40
+
41
+
meta = with lib; {
42
+
homepage = "https://github.com/rnpgp/sexp";
43
+
description = "S-expressions parser and generator C++ library, fully compliant to [https://people.csail.mit.edu/rivest/Sexp.txt]";
44
+
license = licenses.mit;
45
+
platforms = platforms.all;
46
+
maintainers = with maintainers; [ ribose-jeffreylau ];
47
+
};
48
+
})
+2
pkgs/top-level/all-packages.nix
+2
pkgs/top-level/all-packages.nix