gexp: Add 'local-file'.
authorLudovic Courtès <ludo@gnu.org>
Sat, 28 Mar 2015 20:26:33 +0000 (21:26 +0100)
committerLudovic Courtès <ludo@gnu.org>
Sun, 29 Mar 2015 20:23:33 +0000 (22:23 +0200)
commitd9ae938f2c950f3bf1896fb07189c3e28b4d8029
treed9e533d40ad7d7e7cc02f5329e6502d0ab5b9013
parentb39fc6f7bcbe2c87247be48393a5a4105e08cc6d
gexp: Add 'local-file'.

* guix/gexp.scm (<local-file>): New record type.
  (local-file): New procedure.
  (local-file-compiler): New compiler.
  (gexp->sexp) <struct? thing>: Handle the case where 'lower' returns a
  file name.
  (text-file*): Update docstring.local-file doc
* tests/gexp.scm ("one local file", "gexp->derivation, local-file"): New
  tests.
* doc/guix.texi (G-Expressions): Mention local files early.  Document
  'local-file'.  Update 'text-file*' documentation.
doc/guix.texi
guix/gexp.scm
tests/gexp.scm