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