mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
package: Allow multiple '--manifest' options.
* guix/scripts/package.scm (manifest-action): Remove. (%actions): Remove it. (load-manifest): New procedure. (process-actions): Handle 'manifest' options. Define 'files' from 'manifest' options. Define 'manifest' based on FILES. Define 'trans' to represent the final transaction. * tests/guix-package.sh: Test it. * doc/guix.texi (Invoking guix package): Mention
This commit is contained in:
parent
ce30a0eb7e
commit
bf9206d8ed
3 changed files with 41 additions and 25 deletions
|
@ -394,6 +394,19 @@ guix package -I | grep guile
|
|||
test `guix package -I | wc -l` -eq 1
|
||||
guix package --rollback --bootstrap
|
||||
|
||||
# Applying two manifests.
|
||||
cat > "$module_dir/manifest2.scm"<<EOF
|
||||
(use-modules (gnu packages bootstrap) (guix))
|
||||
(define p (package (inherit %bootstrap-guile) (name "eliug")))
|
||||
(packages->manifest (list p))
|
||||
EOF
|
||||
guix package --bootstrap \
|
||||
-m "$module_dir/manifest.scm" -m "$module_dir/manifest2.scm"
|
||||
guix package -I | grep guile
|
||||
guix package -I | grep eliug
|
||||
test `guix package -I | wc -l` -eq 2
|
||||
guix package --rollback --bootstrap
|
||||
|
||||
# Applying a manifest file with inferior packages.
|
||||
cat > "$module_dir/manifest.scm"<<EOF
|
||||
(use-modules (guix inferior))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue