-
-
Notifications
You must be signed in to change notification settings - Fork 85
/
gwl.scroll
69 lines (57 loc) · 1.79 KB
/
gwl.scroll
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
import ../code/conceptPage.scroll
id gwl
name Guix Workflow Language
appeared 2017
tags pl
website https://www.guixwl.org/
standsFor Guix Workflow Language
relatedConcepts scheme
country United States
originCommunity GNU Project
example
;; https://www.guixwl.org/extended-start
;; We are going to extend the workflow defined in the file
;; "example-workflow.w".
define dynamic-workflow
load-workflow "/tmp/examples/example-workflow.w"
process: (list-file-template filename)
name
string-append "list-file-"
basename filename
packages "gzip"
inputs filename
outputs
string-append filename ".list"
run-time
complexity
space 20 mebibytes
time 30 seconds
# { gzip --list {{inputs}} > {{outputs}} }
;; Get all processes of the other workflow.
define foreign-processes
workflow-processes dynamic-workflow
;; Get the processes that we want to extend on.
define compress-file-processes
processes-filter-by-name foreign-processes "compress-file"
;; Create the new processes.
define list-file-processes
map list-file-template
append-map process-outputs compress-file-processes
workflow: extended-dynamic-workflow
processes
append
;; These are the process connections of the imported workflow
workflow-restrictions dynamic-workflow
;; And these are the new process connections. The "zip" procedure
;; pairs up each of the processes in "list-file-processes" with
;; one of the processes in "compress-file-processes".
zip list-file-processes compress-file-processes
lineCommentToken ;
hasLineComments true
; A comment
hasComments true
; A comment
hasSemanticIndentation false
domainName guixwl.org
registered 2017
semanticScholar 0