summaryrefslogtreecommitdiff
path: root/guix/git-download.scm
diff options
context:
space:
mode:
authorPhilip McGrath <philip@philipmcgrath.com>2022-01-08 03:41:51 -0500
committerLiliana Marie Prikler <liliana.prikler@gmail.com>2022-01-09 02:07:11 +0100
commit2ef3fe9f35cf4c4709352600a1370b852b70b27c (patch)
tree573a0d2e7e47c07b4ec87958180d0892f92ca0b1 /guix/git-download.scm
parent75416be16bf8df97ca31de6aa0a8b8cc731aec78 (diff)
downloadguix-patches-2ef3fe9f35cf4c4709352600a1370b852b70b27c.tar
guix-patches-2ef3fe9f35cf4c4709352600a1370b852b70b27c.tar.gz
guix: node-build-system: Add JSON utilities.
This commit adds several utility functions for non-destructive transformation of the JSON representation used by (guix build json), particularly for purely functional update of JSON objects. They ought to eventually be exported from their own module, but for now are kept private to allow experimentation. * guix/build/node-build-system.scm (assoc-ref*, jsobject-ref, alist-pop) (alist-update, jsobject-update*, jsobject-union): New variables. (with-atomic-json-file-replacement): New public variable. (module-name, build, patch-dependencies): Use them. Do not resort to unsafe alist primitives from Guile core. Co-authored-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
Diffstat (limited to 'guix/git-download.scm')
0 files changed, 0 insertions, 0 deletions