guix import


guix import command is a useful for people who would like to add a package to the distribution with as little work as possible.

Wikipedia


Overview

guix import command is a useful for people who would like to add a package to the distribution with as little work as possible. The command knows of a few repositories from which it can “import” package metadata. The result is a package definition, or a template thereof, in the format we know.

The general syntax is:

guix import importer options ...

Supported importers

  • gnu
  • pypi
  • gem
  • cpan
  • cran
  • texlive
  • json
  • nix
  • hackage
  • stackage
  • elpa
  • crate
  • opam

Example

guix import pypi etebase

The output:

(package
  (name "python-etebase")
  (version "0.31.2")
  (source
    (origin
      (method url-fetch)
      (uri (pypi-uri "etebase" version))
      (sha256
        (base32
          "1phgyk2w6xx5pqpp8hv3dbszsv0l60ncdxrjvb66h1lyp79imh3j"))))
  (build-system python-build-system)
  (propagated-inputs
    `(("python-msgpack" ,python-msgpack)))
  (home-page
    "https://github.com/etesync/etebase-py")
  (synopsis "Python client library for Etebase")
  (description "Python client library for Etebase")
  (license #f))
  • You can run import command recursively by -r option:
guix import crate rand -r
  • You can run import command for specific version:
guix import crate rand@0.7.3

References:

PantherX & (unofficial) GNU Guix Wiki.

Last update: 2024-04-21 10:28:03 +0000 | Apache-2.0

Inspired by the excellent Arch Linux Wiki