[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/06: gnu: Add jsonnet.
From: |
guix-commits |
Subject: |
01/06: gnu: Add jsonnet. |
Date: |
Thu, 12 Aug 2021 06:35:09 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit 0dc9e58929252f249efc8b51e1171f940adda3d0
Author: Vivien Kraus <vivien@planete-kraus.eu>
AuthorDate: Mon Aug 2 16:07:08 2021 +0200
gnu: Add jsonnet.
* gnu/packages/cpp.scm (jsonnet): New variable.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
---
gnu/packages/cpp.scm | 38 ++++++++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)
diff --git a/gnu/packages/cpp.scm b/gnu/packages/cpp.scm
index 42e9d50..8c8109f 100644
--- a/gnu/packages/cpp.scm
+++ b/gnu/packages/cpp.scm
@@ -45,6 +45,7 @@
#:use-module (guix build-system gnu)
#:use-module (guix build-system python)
#:use-module (guix modules)
+ #:use-module (guix gexp)
#:use-module (gnu packages)
#:use-module (gnu packages autotools)
#:use-module (gnu packages boost)
@@ -1211,3 +1212,40 @@ of reading and writing XML.")
;; incompatible with the GPL v2. Refer to the file named FLOSSE for the
;; details.
(license license:gpl2+)))
+
+(define-public jsonnet
+ (package
+ (name "jsonnet")
+ (version "0.17.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/google/jsonnet")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1ddz14699v5lqx3dh0mb7hfffr6fk5zhmzn3z8yxkqqvriqnciim"))
+ (modules '((guix build utils)))
+ (snippet
+ #~(begin
+ (rename-file "third_party/md5" ".md5")
+ (delete-file-recursively "third_party")
+ (delete-file-recursively "doc/third_party")
+ (substitute* '("core/vm.cpp")
+ (("#include \"json.hpp\"") "#include <nlohmann/json.hpp>"))
+ (mkdir "third_party")
+ (rename-file ".md5" "third_party/md5")))))
+ (build-system cmake-build-system)
+ (arguments
+ `(#:configure-flags '("-DUSE_SYSTEM_GTEST=ON" "-DUSE_SYSTEM_JSON=ON")))
+ (native-inputs
+ `(("googletest" ,googletest)
+ ("pkg-config" ,pkg-config)))
+ (inputs
+ `(("json-modern-cxx" ,json-modern-cxx)))
+ (home-page "https://jsonnet.org/")
+ (synopsis "Data templating language")
+ (description "Jsonnet is a templating language extending JSON
+syntax with variables, conditions, functions and more.")
+ (license license:asl2.0)))
- branch master updated (9f544c6 -> 8b9a564), guix-commits, 2021/08/12
- 01/06: gnu: Add jsonnet.,
guix-commits <=
- 04/06: system: Handle 'setuid-programs' deprecation handling as a field sanitizer., guix-commits, 2021/08/12
- 05/06: system: Accept gexps in 'setuid-programs'., guix-commits, 2021/08/12
- 06/06: system: install, hurd: Use 'setuid-programs'., guix-commits, 2021/08/12
- 02/06: gnu: jsonnet: Do not build static libraries., guix-commits, 2021/08/12
- 03/06: records: Support field sanitizers., guix-commits, 2021/08/12