blob: bb5476b1e3cea4ea8fbcaf73ad9790cbe86b1046 (
plain)
1
2
3
4
5
6
7
8
9
|
(define extract-specific-file
(command #:inputs (archive #:type 'File) (extractfile #:type 'string)
#:run "tar" "--extract" "--file" archive extractfile
#:outputs (extracted-file
#:type 'File
#:binding '((glob . "$(inputs.extractfile)")))))
(workflow ((archive #:type File) (extractfile #:type string))
(extract-specific-file #:archive archive #:extractfile extractfile))
|