--- Begin Message ---
Subject: |
[PATCH] gnu: Add jsonnet. |
Date: |
Mon, 02 Aug 2021 17:01:07 +0200 |
User-agent: |
Evolution 3.34.2 |
Hello,
Here is jsonnet. I don’t fully understand what it does, but thanks to
leoprikler, I know it is a dependency to package GraalJS, an
interpreter for JavaScript on the Java Virtual Machine.
For the sake of having "no dependencies", it bundles a custom
implementation of MD5. According to a comment in the associated
license, it is taken from the implementation of bzflag, but it does not
seem to use the same as of today.
I decided to use nettle, and add a few lines of C++ to shape it into
the required interface.
Best regards,
Vivien
0001-gnu-Add-jsonnet.patch
Description: Text Data
--- End Message ---
--- Begin Message ---
Subject: |
Re: bug#49823: [PATCH] gnu: Add jsonnet. |
Date: |
Thu, 12 Aug 2021 09:53:53 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) |
Hi Vivien,
Vivien Kraus <vivien@planete-kraus.eu> skribis:
> From 8ce461001ed14c3267d839334e4853feaed69b50 Mon Sep 17 00:00:00 2001
> From: Vivien Kraus <vivien@planete-kraus.eu>
> Date: Mon, 2 Aug 2021 16:07:08 +0200
> Subject: [PATCH] gnu: Add jsonnet.
>
> * gnu/packages/cpp.scm (jsonnet): New variable.
Applied with the tweak below.
Thank you, and thanks for taking the time for the extra work!
Ludo’.
diff --git a/gnu/packages/cpp.scm b/gnu/packages/cpp.scm
index 870c02dac3..8c8109fb83 100644
--- a/gnu/packages/cpp.scm
+++ b/gnu/packages/cpp.scm
@@ -1232,16 +1232,13 @@ of reading and writing XML.")
(rename-file "third_party/md5" ".md5")
(delete-file-recursively "third_party")
(delete-file-recursively "doc/third_party")
- (substitute*
- '("core/vm.cpp")
+ (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")))
- (propagated-inputs
- '())
(native-inputs
`(("googletest" ,googletest)
("pkg-config" ,pkg-config)))
--- End Message ---