gnu: rocksdb: Update to 6.10.1.
[jackhill/guix/guix.git] / gnu / packages / dhall.scm
CommitLineData
9ff667ea
JS
1;;; Copyright © 2020 John Soo <jsoo1@asu.edu>
2;;;
3;;; This file is part of GNU Guix.
4;;;
5;;; GNU Guix is free software; you can redistribute it and/or modify it
6;;; under the terms of the GNU General Public License as published by
7;;; the Free Software Foundation; either version 3 of the License, or (at
8;;; your option) any later version.
9;;;
10;;; GNU Guix is distributed in the hope that it will be useful, but
11;;; WITHOUT ANY WARRANTY; without even the implied warranty of
12;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13;;; GNU General Public License for more details.
14;;;
15;;; You should have received a copy of the GNU General Public License
16;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
17
18(define-module (gnu packages dhall)
19 #:use-module (gnu packages)
20 #:use-module (gnu packages haskell-xyz)
21 #:use-module (gnu packages haskell-check)
22 #:use-module (gnu packages haskell-crypto)
23 #:use-module (gnu packages haskell-web)
24 #:use-module (guix download)
25 #:use-module (guix build-system haskell)
26 #:use-module ((guix licenses) #:prefix license:)
27 #:use-module (guix packages))
28
29(define-public dhall
30 (package
31 (name "dhall")
32 (version "1.31.1")
33 (source
34 (origin
35 (method url-fetch)
36 (uri (string-append
37 "https://hackage.haskell.org/package/dhall/dhall-"
38 version
39 ".tar.gz"))
40 (sha256
41 (base32
42 "18v7vvcbcm9s7slh6h43rj9yakkkxwnwgj6kv84i6qzd2j7d80mc"))
43 (patches (search-patches "dhall-remove-network-tests.patch"))))
44 (build-system haskell-build-system)
45 (inputs
46 `(("ghc-aeson" ,ghc-aeson)
47 ("ghc-aeson-pretty" ,ghc-aeson-pretty)
48 ("ghc-ansi-terminal" ,ghc-ansi-terminal)
49 ("ghc-atomic-write" ,ghc-atomic-write-0.2.0.7)
50 ("ghc-case-insensitive" ,ghc-case-insensitive)
51 ("ghc-cborg" ,ghc-cborg)
52 ("ghc-cborg-json" ,ghc-cborg-json)
53 ("ghc-contravariant" ,ghc-contravariant)
54 ("ghc-data-fix" ,ghc-data-fix)
55 ("ghc-diff" ,ghc-diff)
56 ("ghc-dotgen" ,ghc-dotgen)
57 ("ghc-either" ,ghc-either)
58 ("ghc-exceptions" ,ghc-exceptions)
59 ("ghc-hashable" ,ghc-hashable)
60 ("ghc-lens-family-core" ,ghc-lens-family-core)
61 ("ghc-megaparsec" ,ghc-megaparsec)
62 ("ghc-memory" ,ghc-memory)
63 ("ghc-network-uri" ,ghc-network-uri)
64 ("ghc-optparse-applicative" ,ghc-optparse-applicative)
65 ("ghc-parsers" ,ghc-parsers)
66 ("ghc-parser-combinators" ,ghc-parser-combinators)
67 ("ghc-prettyprinter" ,ghc-prettyprinter-1.6)
68 ("ghc-prettyprinter-ansi-terminal" ,ghc-prettyprinter-ansi-terminal)
69 ("ghc-pretty-simple" ,ghc-pretty-simple)
70 ("ghc-profunctors" ,ghc-profunctors)
71 ("ghc-repline" ,ghc-repline-0.3)
72 ("ghc-serialise" ,ghc-serialise)
73 ("ghc-scientific" ,ghc-scientific)
74 ("ghc-text-manipulate" ,ghc-text-manipulate)
75 ("ghc-th-lift-instances" ,ghc-th-lift-instances)
76 ("ghc-transformers-compat" ,ghc-transformers-compat)
77 ("ghc-unordered-containers" ,ghc-unordered-containers)
78 ("ghc-uri-encode" ,ghc-uri-encode)
79 ("ghc-vector" ,ghc-vector)
80 ("ghc-cryptonite" ,ghc-cryptonite)
81 ("ghc-http-types" ,ghc-http-types)
82 ("ghc-http-client" ,ghc-http-client)
83 ("ghc-http-client-tls" ,ghc-http-client-tls)))
84 (native-inputs
85 `(("ghc-foldl" ,ghc-foldl)
86 ("ghc-generic-random" ,ghc-generic-random-1.3.0.1)
87 ("ghc-quickcheck" ,ghc-quickcheck)
88 ("ghc-quickcheck-instances" ,ghc-quickcheck-instances)
89 ("ghc-semigroups" ,ghc-semigroups)
90 ("ghc-special-values" ,ghc-special-values)
91 ("ghc-spoon" ,ghc-spoon)
92 ("ghc-tasty" ,ghc-tasty)
93 ("ghc-tasty-expected-failure" ,ghc-tasty-expected-failure)
94 ("ghc-tasty-hunit" ,ghc-tasty-hunit)
95 ("ghc-tasty-quickcheck" ,ghc-tasty-quickcheck)
96 ("ghc-turtle" ,ghc-turtle)
97 ("ghc-mockery" ,ghc-mockery)
98 ("ghc-doctest" ,ghc-doctest)))
99 (arguments
100 `(#:phases
101 (modify-phases %standard-phases
102 ;; Remove tests that require network
103 (add-after 'unpack 'remove-more-tests
104 (lambda _
105 (substitute* "src/Dhall/Tutorial.hs"
106 (((string-append
107 "-- >>> input auto "
108 "\"https://raw.githubusercontent.com/dhall-lang"
109 "/dhall-haskell/18e4e9a18dc53271146df3ccf5b4177c3552236b/"
110 "examples/True\" :: IO Bool"))
111 "")
112 (((string-append
113 "-- >>> input auto "
114 "\"False == "
115 "https://raw.githubusercontent.com/dhall-lang"
116 "/dhall-haskell/18e4e9a18dc53271146df3ccf5b4177c3552236b/"
117 "examples/True\" :: IO Bool"))
118 ""))
119 #t)))))
120 (home-page
121 "https://dhall-lang.org/")
122 (synopsis
123 "Configuration language guaranteed to terminate")
124 (description
125 "Dhall is an explicitly typed configuration language that is not Turing
126complete. Despite being Turing incomplete, Dhall is a real programming
127language with a type-checker and evaluator.
128
129Use this library to parse, type-check, evaluate, and pretty-print the Dhall
130configuration language. This package also includes an executable which
131type-checks a Dhall file and reduces the file to a fully evaluated normal
132form.")
133 (license license:bsd-3)))