blob: d9a0217f46631d0134e8d0274f20831ae494a847 (
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))
|