aboutsummaryrefslogtreecommitdiff
path: root/nix/.gitignore
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2021-02-16 20:54:27 +0100
committerLudovic Courtès <ludo@gnu.org>2021-02-23 15:24:48 +0100
commitfc6d6aee6659acb293eb33f498fdac3b47a19a48 (patch)
tree8097662f5364fc15f9c60ec1d81fb35d593ae3bb /nix/.gitignore
parentbde7929bd06196ed84f96d08676ee43da4685975 (diff)
downloadguix-fc6d6aee6659acb293eb33f498fdac3b47a19a48.tar
guix-fc6d6aee6659acb293eb33f498fdac3b47a19a48.tar.gz
gexp: 'gexp-inputs' returns a list of <gexp-input> records.
This slightly reduces memory allocation. * guix/gexp.scm (lower-inputs): Expect a list of <gexp-input> rather than a list of tuples. (lower-reference-graphs)[tuple->gexp-input]: New procedure. Use it. (gexp-inputs): Return a list of <gexp-input> rather than a list of tuples. * tests/gexp.scm (gexp-input->tuple): New procedure. ("one input package") ("one input package, dotted list") ("one input origin") ("one local file") ("one local file, symlink") ("one plain file") ("two input packages, one derivation, one file") ("file-append") ("file-append, output") ("file-append, nested") ("let-system") ("let-system, nested") ("ungexp + ungexp-native") ("ungexp + ungexp-native, nested") ("ungexp + ungexp-native, nested, special mixture") ("input list") ("input list + ungexp-native") ("input list splicing") ("input list splicing + ungexp-native-splicing") ("gexp list splicing + ungexp-splicing"): Adjust accordingly.
Diffstat (limited to 'nix/.gitignore')
0 files changed, 0 insertions, 0 deletions