diff options
author | Ludovic Courtès <ludo@gnu.org> | 2015-04-11 12:29:10 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2015-04-11 13:06:23 +0200 |
commit | cceab87536d0385e406f30dea001d48e9b8f5621 (patch) | |
tree | bff619e72cdfd4f07971ab8c402d2903a34d19d0 /guix/packages.scm | |
parent | 8550894bfe75369740bbd178481dc8b3c89bad8e (diff) | |
download | gnu-guix-cceab87536d0385e406f30dea001d48e9b8f5621.tar gnu-guix-cceab87536d0385e406f30dea001d48e9b8f5621.tar.gz |
packages: Add 'bag-direct-inputs'.
* guix/packages.scm (bag-direct-inputs): New procedure.
(bag-transitive-inputs): Use it.
Diffstat (limited to 'guix/packages.scm')
-rw-r--r-- | guix/packages.scm | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/guix/packages.scm b/guix/packages.scm index 99fbd24cb6..f278db50f1 100644 --- a/guix/packages.scm +++ b/guix/packages.scm @@ -107,6 +107,7 @@ package->bag bag->derivation + bag-direct-inputs bag-transitive-inputs bag-transitive-host-inputs bag-transitive-build-inputs @@ -580,11 +581,15 @@ supported by its dependencies." (package-supported-systems package) (package-direct-inputs package))) +(define (bag-direct-inputs bag) + "Same as 'package-direct-inputs', but applied to a bag." + (append (bag-build-inputs bag) + (bag-host-inputs bag) + (bag-target-inputs bag))) + (define (bag-transitive-inputs bag) "Same as 'package-transitive-inputs', but applied to a bag." - (transitive-inputs (append (bag-build-inputs bag) - (bag-host-inputs bag) - (bag-target-inputs bag)))) + (transitive-inputs (bag-direct-inputs bag))) (define (bag-transitive-build-inputs bag) "Same as 'package-transitive-native-inputs', but applied to a bag." |