diff options
author | Marius Bakke <mbakke@fastmail.com> | 2018-10-21 18:06:02 +0200 |
---|---|---|
committer | Marius Bakke <mbakke@fastmail.com> | 2018-10-21 18:06:02 +0200 |
commit | ffddb42d6c510456997ee6de1c1b8026c9ce6d14 (patch) | |
tree | 5be4a965bb14f3de4af9f733f802b80840aff84c /guix/gexp.scm | |
parent | e381ae317c054a8ac52037c3f0df72ca3c96b91f (diff) | |
parent | 3a69b59332f02805fde2aee22b8f622c651f7007 (diff) | |
download | patches-ffddb42d6c510456997ee6de1c1b8026c9ce6d14.tar patches-ffddb42d6c510456997ee6de1c1b8026c9ce6d14.tar.gz |
Merge branch 'master' into core-updates
Diffstat (limited to 'guix/gexp.scm')
-rw-r--r-- | guix/gexp.scm | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/guix/gexp.scm b/guix/gexp.scm index 770b79e012..f7def5862b 100644 --- a/guix/gexp.scm +++ b/guix/gexp.scm @@ -438,6 +438,14 @@ This is the declarative counterpart of 'gexp->file'." (base file-append-base) ;<package> | <derivation> | ... (suffix file-append-suffix)) ;list of strings +(define (write-file-append file port) + (match file + (($ <file-append> base suffix) + (format port "#<file-append ~s ~s>" base + (string-join suffix))))) + +(set-record-type-printer! <file-append> write-file-append) + (define (file-append base . suffix) "Return a <file-append> object that expands to the concatenation of BASE and SUFFIX." |