| Commit message (Expand) | Author | Age | Files | Lines |
* | tests: Make ‘tests/print.scm’ deterministic.•••The “package with inputs” test would fail non-deterministically:
sometimes ‘package->code’ would pick the ‘glibc’ symbol, sometimes it
would take ‘glibc/hurd’, which is an alias for ‘glibc’.
* tests/print.scm (pkg-with-inputs)[inputs]: Replace ‘glibc’ with
‘gnu-make’.
Change-Id: Ie192adda98d66546fae820a6bcdd5bb4b9f4dae7
| Ludovic Courtès | 2024-09-28 | 1 | -1/+6 |
* | import: print: Quasiquote properties•••* guix/import/print.scm (package->code): Quasiquote properties.
* tests/print.scm (pkg-with-properties, pkg-with-properties-source):
New variables.
("package with properties"): New test
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
| itd | 2022-09-29 | 1 | -0/+23 |
* | Merge branch 'master' into core-updates-frozen | Ludovic Courtès | 2021-11-17 | 1 | -0/+84 |
|\ |
|
| * | import: print: Replace packages and origins in 'arguments'.•••* guix/import/print.scm (package->code)[variable-reference]
[object->code]: New procedures.
[package-lists->code]: Rewrite in terms of 'object->code'.
Pass the 'arguments' field through 'object->code'.
* tests/print.scm (pkg-with-arguments, pkg-with-arguments-source): New
variables.
("package with arguments"): New test.
| Ludovic Courtès | 2021-11-11 | 1 | -0/+23 |
| * | import: print: Handle patches that are origins.•••* guix/import/print.scm (package->code)[source->code]: Handle patches
that are origins.
* tests/print.scm (pkg-with-origin-input): Add 'patches' field.
(pkg-with-origin-patch, pkg-with-origin-patch-source): New variables.
("package with origin patch"): New test.
| Ludovic Courtès | 2021-11-11 | 1 | -1/+32 |
| * | import: print: Correctly handle URI lists.•••* guix/import/print.scm (package->code)[factorized-uri-code]: New
procedure.
[source->code]: Use it, and factorize URI when it's a list.
* tests/print.scm (pkg-with-origin-input): Check origin URI to a list.
| Ludovic Courtès | 2021-11-11 | 1 | -2/+4 |
| * | import: print: Properly render packages with origins as inputs.•••* guix/import/print.scm (package->code)[source->code]: Check whether
VERSION is true before calling 'factorize-uri'.
[package-lists->code]: Add clause for inputs that are origins.
* tests/print.scm (pkg-with-origin-input, pkg-with-origin-input-source):
New variables.
("package with origin input"): New test.
| Ludovic Courtès | 2021-11-11 | 1 | -0/+28 |
* | | import: print: Emit new-style package inputs when possible.•••* guix/import/print.scm (redundant-input-labels?): New procedure.
(package->code)[package-lists->code]: Rename to...
[inputs->code]: ... this. When 'redundant-input-labels?' returns true,
emit label-less inputs. Adjust callers to new name.
* tests/print.scm (pkg-with-inputs): Adjust accordingly.
| Ludovic Courtès | 2021-07-11 | 1 | -2/+2 |
|/ |
|
* | tests: Update expected values for package->code.•••Reported by janneke on IRC.
* tests/print.scm: Update expected package definitions produced by package->code.
| Ricardo Wurmus | 2020-04-20 | 1 | -8/+8 |
* | import: 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 | 2019-06-07 | 1 | -17/+31 |
* | import: 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 | 2017-09-28 | 1 | -0/+64 |