From cceab87536d0385e406f30dea001d48e9b8f5621 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Sat, 11 Apr 2015 12:29:10 +0200 Subject: packages: Add 'bag-direct-inputs'. * guix/packages.scm (bag-direct-inputs): New procedure. (bag-transitive-inputs): Use it. --- guix/packages.scm | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'guix/packages.scm') 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." -- cgit v1.2.3