shell: '--export-manifest -D x -D y' generates a valid manifest.
* guix/scripts/shell.scm (manifest->code*): Add missing 'list' in generated 'concatenate-manifests' call. * tests/guix-shell-export-manifest.sh: Add test.
parent
572bc6d7bd
commit
2acc83daa5
|
@ -410,7 +410,7 @@ concatenates MANIFESTS, a list of expressions."
|
|||
(if (null? (manifest-entries manifest))
|
||||
(match extra-manifests
|
||||
((one) one)
|
||||
(lst `(concatenate-manifests ,@extra-manifests)))
|
||||
(lst `(concatenate-manifests (list ,@extra-manifests))))
|
||||
(match (manifest->code manifest
|
||||
#:entry-package-version
|
||||
manifest-entry-version-prefix)
|
||||
|
|
|
@ -69,6 +69,11 @@ guix build -m "$manifest" -d | \
|
|||
guix build -m "$manifest" -d | \
|
||||
grep "$(guix build git -d)"
|
||||
|
||||
guix shell --export-manifest -D guile -D python-itsdangerous > "$manifest"
|
||||
guix build -m "$manifest" -d | grep "$(guix build libffi -d)"
|
||||
guix build -m "$manifest" -d | \
|
||||
grep "$(guix build -e '(@ (gnu packages python) python)' -d)"
|
||||
|
||||
# Test various combinations to make sure generated code uses interfaces
|
||||
# correctly.
|
||||
for options in \
|
||||
|
|
Reference in New Issue