diff options
author | Christopher Baines <mail@cbaines.net> | 2021-02-09 23:06:26 +0000 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2021-02-09 23:06:26 +0000 |
commit | bac9844134740d11d421ac8dada90a4e292708eb (patch) | |
tree | 51e092ed5a58c1301be90d7b7cf4672badba7344 | |
parent | 7350a36afa4e3096b53eefc0789fb070be5ec5c5 (diff) | |
download | build-coordinator-bac9844134740d11d421ac8dada90a4e292708eb.tar build-coordinator-bac9844134740d11d421ac8dada90a4e292708eb.tar.gz |
Add fallback guile-json-4 package
For old versions of Guix.
-rw-r--r-- | guix-dev.scm | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/guix-dev.scm b/guix-dev.scm index 845c216..d254922 100644 --- a/guix-dev.scm +++ b/guix-dev.scm @@ -55,6 +55,41 @@ guile-3.0-latest guile-next)) +(define guile-json-4 + (if (defined? 'guile-json-4 + (resolve-interface '(gnu packages guile))) + guile-json-4 + (package + (name "guile-json") + (version "4.5.2") + (source (origin + (method url-fetch) + (uri (string-append "mirror://savannah/guile-json/guile-json-" + version ".tar.gz")) + (sha256 + (base32 + "0cqr0ljqmzlc2bwrapcsmcgxg147h66mcxf23824ri5i6vn4dc0s")))) + (build-system gnu-build-system) + (arguments + `(#:make-flags '("GUILE_AUTO_COMPILE=0"))) ;to prevent guild warnings + (native-inputs `(("pkg-config" ,pkg-config) + ("guile" ,guile-3.0))) + (inputs `(("guile" ,guile-3.0))) + (synopsis "JSON module for Guile") + (description + "Guile-JSON supports parsing and building JSON documents according to the +specification. These are the main features: + +@itemize +@item Strictly complies to @uref{http://json.org, specification}. +@item Build JSON documents programmatically via macros. +@item Unicode support for strings. +@item Allows JSON pretty printing. +@end itemize\n") + (home-page "https://github.com/aconchillo/guile-json") + ;; Version 1.2.0 switched to GPLv3+ (from LGPLv3+). + (license license:gpl3+)))) + (package (name "guix-build-coordinator") (version "0.0.0") |