mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
scripts: package: Add --install-from-file option.
* guix/scripts/package.scm (show-help): Add help text for --install-from-file option. (%options): Add --install-from-file option. * tests/guix-package.sh: Test it. * doc/guix.texi ("invoking guix package"): Document it. * doc/package-hello.scm: New file. * doc.am (EXTRA_DIST): Add it.
This commit is contained in:
parent
83bde59fb3
commit
0d2794005c
5 changed files with 55 additions and 1 deletions
|
@ -225,6 +225,15 @@ cat > "$module_dir/foo.scm"<<EOF
|
|||
EOF
|
||||
guix package -i emacs-foo-bar-patched -n
|
||||
|
||||
# Make sure installing from a file works.
|
||||
cat > "$module_dir/package.scm"<<EOF
|
||||
(use-modules (gnu))
|
||||
(use-package-modules bootstrap)
|
||||
|
||||
%bootstrap-guile
|
||||
EOF
|
||||
guix package --bootstrap --install-from-file="$module_dir/package.scm"
|
||||
|
||||
# This one should not show up in searches since it's no supported on the
|
||||
# current system.
|
||||
test "`guix package -A super-non-portable-emacs`" = ""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue