summary refs log tree commit diff
path: root/doc/guix.texi
diff options
context:
space:
mode:
authorTaiju HIGASHI <higashi@taiju.info>2022-09-09 22:47:36 +0900
committerChristopher Baines <mail@cbaines.net>2022-09-17 19:09:27 +0200
commit5d22261db3d5099d745b9e8c8484545e546b319e (patch)
tree2c72e5bd6d22e8a8d58ed60dca844ce6ef5ab496 /doc/guix.texi
parentc54ef97c80f98fba77304efc560945fe78a4bafb (diff)
downloadguix-5d22261db3d5099d745b9e8c8484545e546b319e.tar.gz
import: gem: Support importing a specific version of a gem.
* guix/import/gem.scm: (rubygems-fetch, gem->guix-package)
(gem-recursive-import): Fix to fetch the specified version of the gem.
* guix/scripts/import/gem.scm (show-help): Update the help message.
(guix-import-gem): Modify so the version number to be passed to subsequent
procedures.
* tests/gem.scm: Add tests.
* doc/guix.texi (Invoking guix import): Document.

Signed-off-by: Christopher Baines <mail@cbaines.net>
Diffstat (limited to 'doc/guix.texi')
-rw-r--r--doc/guix.texi6
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/guix.texi b/doc/guix.texi
index c5d2c2d5d8..eb12efa85e 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -13219,6 +13219,12 @@ The command below imports metadata for the @code{rails} Ruby package:
 guix import gem rails
 @end example
 
+You can also ask for a specific version:
+
+@example
+guix import gem @@7.0.4
+@end example
+
 @table @code
 @item --recursive
 @itemx -r