packages: Catch invalid input errors for structs.
authorLudovic Courtès <ludo@gnu.org>
Mon, 3 Apr 2017 22:00:41 +0000 (00:00 +0200)
committerLudovic Courtès <ludo@gnu.org>
Mon, 3 Apr 2017 22:10:00 +0000 (00:10 +0200)
commit76c486196f299716be33df86d06b3ce2b79dd77f
tree660452112c065299779ab5aaab5ff6416c7fb316
parent3e43166ffc11fb117c55da594e57866a75625900
packages: Catch invalid input errors for structs.

Reported by Thomas Sigurdsen <thomas.sigurdsen@gmail.com>
at <https://lists.gnu.org/archive/html/help-guix/2017-04/msg00007.html>.

* guix/packages.scm (expand-input): Add 'guard' form around call to
'package-source-derivation'.
* tests/packages.scm (dummy): New test.
guix/packages.scm
tests/packages.scm