forked from jsoo1/guix-channel
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdhall.scm
255 lines (240 loc) · 9.53 KB
/
dhall.scm
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
(define-module (dhall)
#:use-module ((ghc-cborg) #:select (ghc-cborg
ghc-cborg-json
ghc-serialise))
#:use-module (ghc-parsing)
#:use-module (ghc-repline)
#:use-module (gnu packages haskell-xyz)
#:use-module (gnu packages haskell-check)
#:use-module (gnu packages haskell-crypto)
#:use-module (gnu packages haskell-web)
#:use-module (guix download)
#:use-module ((guix build-system haskell) #:select (haskell-build-system))
#:use-module ((guix licenses) #:prefix license:)
#:use-module (guix packages)
#:export (dhall
dhall-json))
(define dhall
(package
(name "dhall")
(version "1.20.1")
(source
(origin
(method url-fetch)
(uri (string-append
"mirror://hackage/package/dhall/dhall-"
version
".tar.gz"))
(sha256
(base32
"1p5whphy666q0h22yq3jb4aipb5bkqp45bp86m7dp12ljksfhxz0"))))
(build-system haskell-build-system)
(inputs
`(("ghc-aeson" ,ghc-aeson)
("ghc-aeson-pretty" ,ghc-aeson-pretty)
("ghc-ansi-terminal" ,ghc-ansi-terminal)
("ghc-case-insensitive" ,ghc-case-insensitive)
("ghc-cborg" ,ghc-cborg)
("ghc-cborg-json" ,ghc-cborg-json)
("ghc-contravariant" ,ghc-contravariant)
("ghc-cryptonite" ,ghc-cryptonite)
("ghc-diff" ,ghc-diff)
("ghc-dotgen" ,ghc-dotgen)
("ghc-exceptions" ,ghc-exceptions)
("ghc-lens-family-core" ,ghc-lens-family-core)
("ghc-megaparsec" ,ghc-megaparsec-7.0.4)
("ghc-memory" ,ghc-memory)
("ghc-optparse-applicative" ,ghc-optparse-applicative)
("ghc-parsers" ,ghc-parsers)
("ghc-prettyprinter" ,ghc-prettyprinter)
("ghc-prettyprinter-ansi-terminal" ,ghc-prettyprinter-ansi-terminal)
("ghc-repline" ,ghc-repline)
("ghc-serialise" ,ghc-serialise)
("ghc-scientific" ,ghc-scientific)
("ghc-unordered-containers" ,ghc-unordered-containers)
("ghc-uri-encode" ,ghc-uri-encode)
("ghc-vector" ,ghc-vector)
("ghc-http-types" ,ghc-http-types)
("ghc-http-client" ,ghc-http-client)
("ghc-http-client-tls" ,ghc-http-client-tls)))
(native-inputs
`(("ghc-quickcheck" ,ghc-quickcheck)
("ghc-quickcheck-instances" ,ghc-quickcheck-instances)
("ghc-tasty" ,ghc-tasty)
("ghc-tasty-hunit" ,ghc-tasty-hunit)
("ghc-tasty-quickcheck" ,ghc-tasty-quickcheck)
("ghc-mockery" ,ghc-mockery)
("ghc-doctest" ,ghc-doctest)))
(arguments `(#:tests? #f))
(home-page "http://hackage.haskell.org/package/dhall")
(synopsis "A configuration language guaranteed to terminate")
(description
"Dhall is an explicitly typed configuration language that is not Turing complete. Despite being Turing incomplete, Dhall is a real programming language with a type-checker and evaluator.
Use this library to parse, type-check, evaluate, and pretty-print the Dhall configuration language. This package also includes an executable which type-checks a Dhall file and reduces the file to a fully evaluated normal form.
Read \"Dhall.Tutorial\" to learn how to use this library")
(license license:bsd-3)))
(define dhall-json
(package
(name "dhall-json")
(version "1.2.6")
(source
(origin
(method url-fetch)
(uri (string-append
"mirror://hackage/package/dhall-json/dhall-json-"
version
".tar.gz"))
(sha256
(base32
"0f18kn15v8pzkdayj2hql28fbba9i75msbi41yscik40lw2sg2cr"))))
(build-system haskell-build-system)
(inputs
`(("ghc-aeson" ,ghc-aeson)
("ghc-dhall" ,dhall)
("ghc-optparse-applicative" ,ghc-optparse-applicative)
("ghc-unordered-containers" ,ghc-unordered-containers)
("ghc-aeson-pretty" ,ghc-aeson-pretty)
("ghc-yaml" ,ghc-yaml)
("ghc-vector" ,ghc-vector)))
(native-inputs
`(("ghc-tasty" ,ghc-tasty)
("ghc-tasty-hunit" ,ghc-tasty-hunit)))
(home-page "http://hackage.haskell.org/package/dhall-json")
(synopsis "Compile Dhall to JSON or YAML")
(description
"Use this package if you want to compile Dhall expressions to JSON or YAML. You can use this package as a library or an executable:
* See the \"Dhall.JSON\" module if you want to use this package as a library.
* Use the dhall-to-json or dhall-to-yaml programs from this package if you want an executable.
The \"Dhall.JSON\" module also contains instructions for how to use this package")
(license license:bsd-3)))
;; DEPENDENCIES
(define ghc-pgp-wordlist
(package
(name "ghc-pgp-wordlist")
(version "0.1.0.2")
(source
(origin
(method url-fetch)
(uri (string-append
"mirror://hackage/package/pgp-wordlist/pgp-wordlist-"
version
".tar.gz"))
(sha256
(base32
"0ri4m4a18kmnpw2a3vcw7zgjagccqr3snw2qgljg3b92abl6z2z2"))))
(build-system haskell-build-system)
(inputs
`(("ghc-vector" ,ghc-vector)))
(native-inputs
`(("ghc-hunit" ,ghc-hunit)
("ghc-tasty" ,ghc-tasty)
("ghc-tasty-hunit" ,ghc-tasty-hunit)
("ghc-tasty-quickcheck" ,ghc-tasty-quickcheck)
("ghc-doctest" ,ghc-doctest)))
(home-page
"https://github.com/quchen/pgp-wordlist")
(synopsis
"Translate between binary data and a human-readable collection of words.")
(description
"Translate between binary data and a human-readable collection of words.
The PGP Word List consists of two phonetic alphabets, each with one word per possible byte value. A string of bytes is translated with these alphabets, alternating between them at each byte. . The PGP words corresponding to the bytes 5B 1D CA 6E are \"erase breakaway spellbind headwaters\", for example. . For further information, see http://en.wikipedia.org/wiki/PGP_word_list Wikipedia.")
(license license:bsd-3)))
(define ghc-prettyprinter-ansi-terminal
(package
(name "ghc-prettyprinter-ansi-terminal")
(version "1.1.1.2")
(source
(origin
(method url-fetch)
(uri (string-append
"mirror://hackage/package/prettyprinter-ansi-terminal/prettyprinter-ansi-terminal-"
version
".tar.gz"))
(sha256
(base32
"0ha6vz707qzb5ky7kdsnw2zgphg2dnxrpbrxy8gaw119vwhb9q6k"))))
(build-system haskell-build-system)
(inputs
`(("ghc-ansi-terminal" ,ghc-ansi-terminal)
("ghc-prettyprinter" ,ghc-prettyprinter)))
(native-inputs `(("ghc-doctest" ,ghc-doctest)))
(home-page
"http://github.com/quchen/prettyprinter")
(synopsis
"ANSI terminal backend for the prettyprinter package.")
(description "See README.md")
(license license:bsd-2)))
(define ghc-prettyprinter
(package
(name "ghc-prettyprinter")
(version "1.2.1")
(source
(origin
(method url-fetch)
(uri (string-append
"mirror://hackage/package/prettyprinter/prettyprinter-"
version
".tar.gz"))
(sha256
(base32
"1kvza7jp5n833m8rj0bc35bd2p8wx3fq0iqflm9nbh3wm05kwrg7"))))
(build-system haskell-build-system)
(native-inputs
`(("ghc-doctest" ,ghc-doctest)
("ghc-pgp-wordlist" ,ghc-pgp-wordlist)
("ghc-tasty" ,ghc-tasty)
("ghc-tasty-hunit" ,ghc-tasty-hunit)
("ghc-tasty-quickcheck" ,ghc-tasty-quickcheck)))
(home-page "http://github.com/quchen/prettyprinter")
(synopsis
"A modern, easy to use, well-documented, extensible pretty-printer.")
(description
"A modern, easy to use, well-documented, extensible pretty-printer. For more see README.md")
(license license:bsd-2)))
(define ghc-lens-family-core
(package
(name "ghc-lens-family-core")
(version "1.2.3")
(source
(origin
(method url-fetch)
(uri (string-append
"mirror://hackage/package/lens-family-core/lens-family-core-"
version
".tar.gz"))
(sha256
(base32
"009rf10pj1cb50v44cc1pq7qvfrmkkk9dikahs9qmvbvgl3mykwi"))))
(build-system haskell-build-system)
(home-page
"http://hackage.haskell.org/package/lens-family-core")
(synopsis "Haskell 98 Lens Families")
(description
"This package provides first class functional references. In addition to the usual operations of getting, setting and composition, plus integration with the state monad, lens families provide some unique features:
* Polymorphic updating
* Traversals
* Cast projection functions to read-only lenses
* Cast \"toList\" functions to read-only traversals
* Cast semantic editor combinators to modify-only traversals.
For optimal first-class support use the lens-family package with rank 2/rank N polymorphism. \"Lens.Family.Clone\" allows for first-class support of lenses and traversals for those who require Haskell 98.")
(license license:bsd-3)))
(define ghc-dotgen
(package
(name "ghc-dotgen")
(version "0.4.2")
(source
(origin
(method url-fetch)
(uri (string-append
"mirror://hackage/package/dotgen/dotgen-"
version
".tar.gz"))
(sha256
(base32
"148q93qsmqgr5pzdwvpjqfd6bdm1pwzcp2rblfwswx2x8c5f43fg"))))
(build-system haskell-build-system)
(home-page "https://github.com/ku-fpg/dotgen")
(synopsis "A simple interface for building .dot graph files.")
(description
"This package provides a simple interface for building .dot graph files, for input into the dot and graphviz tools. It includes a monadic interface for building graphs.")
(license license:bsd-3)))