summaryrefslogtreecommitdiff
path: root/manifest.scm
blob: a939482c7dd9db5a19fc4937a6fe143c16327a70 (plain)
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
(define-module (guix walint)
  #:use-module (guix download)
  #:use-module (guix gexp)
  #:use-module (guix profiles)
  #:use-module (gnu packages haskell)
  #:use-module (gnu packages haskell-web)
  #:use-module (gnu packages haskell-xyz)
  #:use-module (guix packages)
  #:use-module (guix git-download)
  #:use-module (guix build-system haskell)
  #:use-module (guix licenses)
  #:use-module (srfi srfi-1))

;; the regex packages provided by current guix are a little too old,
;; and would result in a missing typeclass instance
(define ghc-regex-base-newer
  (package
    (inherit ghc-regex-base)
    (version "0.94.0.1")
    (source
     (origin
       (method url-fetch)
       (uri (string-append
             "https://hackage.haskell.org/package/regex-base/regex-base-"
             version
             ".tar.gz"))
       (sha256
        (base32
         "1ngdmmrxs1rhvib052c6shfa40yad82jylylikz327r0zxpxkcbi"))))))

(define ghc-regex-tdfa-newer
  (package
    (inherit ghc-regex-tdfa)
    (version "1.3.1.1")
    (inputs `(("ghc-regex-base" ,ghc-regex-base-newer)
              ("ghc-utf8-string" ,ghc-utf8-string)))
    (source
     (origin
       (method url-fetch)
       (uri (string-append
             "https://hackage.haskell.org/package/regex-tdfa/regex-tdfa-"
             version ".tar.gz"))
       (sha256
        (base32
         "1msrq31k4jmn2lmrdzn87jqarqhw265ca69rfg5jpa5adrzm3gmi"))))))

(define-public walint
  (package
    (name "walint")
    (version "0.1")
    (source
      (local-file "" #:recursive? #t))
    (build-system haskell-build-system)
    (arguments '())
    (inputs
     `(("ghc" ,ghc)
       ("ghc-aeson" ,ghc-aeson)
       ("ghc-regex-tdfa" ,ghc-regex-tdfa-newer)
       ("ghc-getopt-generics" ,ghc-getopt-generics)
       ("ghc-aeson-pretty" ,ghc-aeson-pretty)
       ("ghc-either" ,ghc-either)
       ("ghc-extra" ,ghc-extra)
       ("ghc-bytestring-builder" ,ghc-bytestring-builder)))
    (home-page "https://stuebinm.eu/git/walint")
    (synopsis "linter for workadventure maps")
    (description
     "linter for workadventure maps")
    (license "undecided")))

(packages->manifest
 `(,walint))