mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2026-04-29 13:31:16 +02:00
import: crate: Allow imports of a specific version.
* guix/import/crate.scm (crate->guix-package): Add optional 'version' argument and honor it. * guix/scripts/import/crate.scm (guix-import-crate): Assume the first argument is a spec and destructure it with 'package-name->name+version'. Pass both to 'crate->guix-package'. * doc/guix.texi (Invoking guix import): Document it. Co-authored-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
committed by
Ludovic Courtès
parent
7c101c4c17
commit
fd63ecbe05
@@ -8912,7 +8912,17 @@ in Guix.
|
||||
@item crate
|
||||
@cindex crate
|
||||
Import metadata from the crates.io Rust package repository
|
||||
@uref{https://crates.io, crates.io}.
|
||||
@uref{https://crates.io, crates.io}, as in this example:
|
||||
|
||||
@example
|
||||
guix import crate blake2-rfc
|
||||
@end example
|
||||
|
||||
The crate importer also allows you to specify a version string:
|
||||
|
||||
@example
|
||||
guix import crate constant-time-eq@@0.1.0
|
||||
@end example
|
||||
|
||||
@item opam
|
||||
@cindex OPAM
|
||||
|
||||
Reference in New Issue
Block a user