-
Notifications
You must be signed in to change notification settings - Fork 3
/
ormolu.scm
66 lines (63 loc) · 2.08 KB
/
ormolu.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
(define-module (ormolu)
#:use-module (guix download)
#:use-module (guix packages)
#:use-module (guix build-system haskell)
#:use-module (gnu packages haskell-xyz)
#:use-module (gnu packages haskell-check)
#:use-module ((guix licenses) #:prefix license:))
(define ghc-lib-parser-9
(package
(name "ghc-lib-parser")
(version "9.0.1.20210324")
(source
(origin
(method url-fetch)
(uri (string-append
"https://hackage.haskell.org/package/ghc-lib-parser/ghc-lib-parser-"
version
".tar.gz"))
(sha256
(base32 "1hl20lz8r9yhgh6hlakmbqp637h49mq3sdxciy4vsz3nhzy7nqqm"))))
(build-system haskell-build-system)
(native-inputs
`(("ghc-alex" ,ghc-alex)
("ghc-happy" ,ghc-happy)))
(home-page "https://github.com/digital-asset/ghc-lib")
(synopsis "The GHC API, decoupled from GHC versions")
(description
"A package equivalent to the @ghc@ package, but which can be loaded on many compiler versions.")
(license license:bsd-3)))
(define-public ormolu
(package
(name "ormolu")
(version "0.2.0.0")
(source
(origin
(method url-fetch)
(uri (string-append
"https://hackage.haskell.org/package/ormolu/ormolu-"
version
".tar.gz"))
(sha256
(base32
"0zivz7vcl4m1rjay5md6cdqac9cnfwz9c844l20byiz5h49bwfhb"))))
(build-system haskell-build-system)
(inputs
`(("ghc-diff" ,ghc-diff)
("ghc-dlist" ,ghc-dlist)
("ghc-exceptions" ,ghc-exceptions)
("ghc-lib-parser" ,ghc-lib-parser-9)
("ghc-paths" ,ghc-paths)
("ghc-syb" ,ghc-syb)
("ghc-gitrev" ,ghc-gitrev)
("ghc-optparse-applicative" ,ghc-optparse-applicative)))
(native-inputs
`(("ghc-hspec" ,ghc-hspec)
("ghc-path" ,ghc-path)
("ghc-path-io" ,ghc-path-io)
("hspec-discover" ,hspec-discover)))
(home-page "https://github.com/tweag/ormolu")
(synopsis "A formatter for Haskell source code")
(description
"A formatter for Haskell source code.")
(license license:bsd-3)))