summaryrefslogtreecommitdiff
path: root/guix/import/print.scm
AgeCommit message (Expand)Author
2020-10-19import: print: Fix deprecation warning for origin-sha256....* guix/import/print.scm (source->code source version): Replace 'origin-sha256' by 'origin-hash' and handle non-SHA256 hashes. Co-authored-by: Ludovic Courtès <ludo@gnu.org> Helio Machado
2020-04-16import/print: Don't factorize URI if there's no version match....* guix/import/print.scm (package->code): If FACTORIZE-URI returns just the unmodified string use that as the URI. Ricardo Wurmus
2020-04-16import/utils: alist->package: Ignore known inputs....* guix/import/utils.scm (alist->package): Accept optional list of known inputs, which are excluded from the specification lookup. * guix/import/print.scm (package->code)[package-lists->code]: Handle inputs which are just symbols. Ricardo Wurmus
2020-04-16import/print: package->code: Wrap S-expression in definition....* guix/import/print.scm (package->code): Return a definition, not just a package expression. Ricardo Wurmus
2020-04-16import/print: package->code: Wrap build system value in module reference....* guix/import/print.scm (package->code): Return build system value with corresponding module. Ricardo Wurmus
2020-04-16import/print: Return license with prefix....* guix/import/print.scm (license->code): Prepend license: prefix. Ricardo Wurmus
2019-06-07import: print: Honor the outputs of inputs (!)....Fixes <http://bugs.gnu.org/35893>. Reported by Jesse Gibbons <jgibbons2357@gmail.com>. * guix/import/print.scm (package->code)[package-lists->code]: Preserve OUT in the result. * tests/print.scm (define-with-source): New macro. (pkg): Use it. (pkg-source): New variable. (pkg-with-inputs, pkg-with-inputs-source): New variables. ("simple package"): Refer to 'pkg-source'. ("package with inputs"): New test. Ludovic Courtès
2017-09-28import: Add package->code....* guix/import/print.scm: New file. * tests/print.scm: New file. * Makefile.am (SCM_TESTS): Add new test file. (MODULES): Add print.scm. Ricardo Wurmus