diff options
author | Jelle Licht <jlicht@fsfe.org> | 2024-05-19 15:11:46 +0200 |
---|---|---|
committer | Jelle Licht <jlicht@fsfe.org> | 2024-05-19 16:05:00 +0200 |
commit | 0685042c4601e7e7a88aab9c1cbfbfb4092a5aa2 (patch) | |
tree | 9ca96d4b0b260d4b4a035e6dabf795714c1cf849 /doc | |
parent | 8c21c9ad233cf9657bf106df31ec0354f5e538e6 (diff) | |
download | guix-0685042c4601e7e7a88aab9c1cbfbfb4092a5aa2.tar.gz |
import: Add binary npm importer.
* guix/scripts/import.scm: (importers): Add "npm-binary". * doc/guix.texi (Invoking guix import): Document npm-binary importer. * guix/import/npm-binary.scm: New file. * guix/scripts/import/npm-binary.scm: New file. * tests/npm-binary.scm: New file. * Makefile.am: Add them. Co-authored-by: Timothy Sample <samplet@ngyro.com> Co-authored-by: Lars-Dominik Braun <lars@6xq.net> Change-Id: I98a45068cf5b9c42790664cc743feaa7ac76f807
Diffstat (limited to 'doc')
-rw-r--r-- | doc/guix.texi | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/doc/guix.texi b/doc/guix.texi index 0c22011161..8073e3f6d4 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -14433,6 +14433,39 @@ and generate package expressions for all those packages that are not yet in Guix. @end table +@item npm-binary +@cindex npm +@cindex Node.js +Import metadata from the @uref{https://registry.npmjs.org, npm +Registry}, as in this example: + +@example +guix import npm-binary buffer-crc32 +@end example + +The npm-binary importer also allows you to specify a version string: + +@example +guix import npm-binary buffer-crc32@@1.0.0 +@end example + +@quotation Note +Generated package expressions skip the build step of the +@code{node-build-system}. As such, generated package expressions often +refer to transpiled or generated files, instead of being built from +source. +@end quotation + +Additional options include: + +@table @code +@item --recursive +@itemx -r +Traverse the dependency graph of the given upstream package recursively +and generate package expressions for all those packages that are not yet +in Guix. +@end table + @item opam @cindex OPAM @cindex OCaml |