diff options
author | Ludovic Courtès <ludo@gnu.org> | 2019-06-23 12:39:39 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2019-06-27 11:14:41 +0200 |
commit | 7c690a47381f645ec5ec0a1fd6ffc34dba1b69c2 (patch) | |
tree | 74ffbca2063de0ef2f69185a8581f2f23a3e2b98 /guix | |
parent | fd951cd543d9f4d3ecfa4570e51797f84e79068b (diff) |
derivations: 'build-derivations' can be passed derivation inputs.
* guix/derivations.scm (build-derivations): Accept <derivation-input>
records among DERIVATIONS.
* tests/derivations.scm ("build-derivations with specific output"): Test
it.
Diffstat (limited to 'guix')
-rw-r--r-- | guix/derivations.scm | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/guix/derivations.scm b/guix/derivations.scm index 403e86749b..433b4551a5 100644 --- a/guix/derivations.scm +++ b/guix/derivations.scm @@ -1016,6 +1016,11 @@ derivation/output pairs, using the specified MODE." (build-things store (map (match-lambda ((? derivation? drv) (derivation-file-name drv)) + ((? derivation-input? input) + (cons (derivation-input-path input) + (string-join + (derivation-input-sub-derivations input) + ","))) ((? string? file) file) (((? derivation? drv) . output) (cons (derivation-file-name drv) |