gexp: Add #:allowed-references parameter to 'gexp->derivation'.
authorLudovic Courtès <ludo@gnu.org>
Wed, 11 Feb 2015 21:10:14 +0000 (22:10 +0100)
committerLudovic Courtès <ludo@gnu.org>
Wed, 11 Feb 2015 21:10:14 +0000 (22:10 +0100)
commitc8351d9a409879b3d948db3713ce4fe4b787bcd0
treed0986d17137c353d61f83fab08045216fc0e34dd
parentaee6180c10ab0c63430b7589167bf9e5846e6919
gexp: Add #:allowed-references parameter to 'gexp->derivation'.

* guix/gexp.scm (lower-references): New procedure.
  (gexp->derivation): Add #:allowed-references and honor it.
* tests/gexp.scm ("gexp->derivation #:allowed-references",
  "gexp->derivation #:allowed-references, disallowed"): New tests.
* doc/guix.texi (G-Expressions): Update 'gexp->derivation' doc.
doc/guix.texi
guix/gexp.scm
tests/gexp.scm