gnu: r-arrmdata: Use bioconductor-uri.
[jackhill/guix/guix.git] / gnu / packages / haskell-apps.scm
CommitLineData
804744b3 1;;; GNU Guix --- Functional package management for GNU
62e42dfa 2;;; Copyright © 2015 Siniša Biđin <sinisa@bidin.eu>
804744b3
LC
3;;; Copyright © 2015, 2017, 2018 Ricardo Wurmus <rekado@elephly.net>
4;;; Copyright © 2016, 2017, 2018 ng0 <ng0@n0.is>
62e42dfa
RV
5;;; Copyright © 2017 Danny Milosavljevic <dannym@scratchpost.org>
6;;; Copyright © 2017, 2018 Alex Vong <alexvong1995@gmail.com>
804744b3
LC
7;;; Copyright © 2017, 2018, 2019 Tobias Geerinckx-Rice <me@tobias.gr>
8;;; Copyright © 2018 Timothy Sample <samplet@ngyro.com>
9;;; Copyright © 2018 Arun Isaac <arunisaac@systemreboot.net>
10;;; Copyright © 2016, 2017 Leo Famulari <leo@famulari.name>
bfccae4e 11;;; Copyright © 2015 Paul van der Walt <paul@denknerd.org>
3d45d8f1 12;;; Copyright © 2019 Kyle Meyer <kyle@kyleam.com>
6ec2450f 13;;; Copyright © 2015 John Soo <jsoo1@asu.edu>
ac1b0801 14;;; Copyright © 2019 Efraim Flashner <efraim@flashner.co.il>
51add2a9 15;;; Copyright © 2019 Alex Griffin <a@ajgrf.com>
804744b3
LC
16;;;
17;;; This file is part of GNU Guix.
18;;;
19;;; GNU Guix is free software; you can redistribute it and/or modify it
20;;; under the terms of the GNU General Public License as published by
21;;; the Free Software Foundation; either version 3 of the License, or (at
22;;; your option) any later version.
23;;;
24;;; GNU Guix is distributed in the hope that it will be useful, but
25;;; WITHOUT ANY WARRANTY; without even the implied warranty of
26;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27;;; GNU General Public License for more details.
28;;;
29;;; You should have received a copy of the GNU General Public License
30;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
31
32(define-module (gnu packages haskell-apps)
33 #:use-module (guix download)
62e42dfa 34 #:use-module (guix git-download)
804744b3
LC
35 #:use-module (guix packages)
36 #:use-module ((guix licenses) #:prefix license:)
37 #:use-module (guix build-system haskell)
38 #:use-module (gnu packages base)
39 #:use-module (gnu packages curl)
bfccae4e 40 #:use-module (gnu packages gl)
804744b3
LC
41 #:use-module (gnu packages haskell)
42 #:use-module (gnu packages haskell-check)
43 #:use-module (gnu packages haskell-crypto)
44 #:use-module (gnu packages haskell-web)
dddbc90c 45 #:use-module (gnu packages haskell-xyz)
804744b3
LC
46 #:use-module (gnu packages ncurses)
47 #:use-module (gnu packages perl)
48 #:use-module (gnu packages pkg-config)
49 #:use-module (gnu packages rsync)
50 #:use-module (gnu packages version-control))
51
841f1954
TS
52;; In Stackage LTS 14, this package is at 2.4.1.0. However, that
53;; version requires version 2.4.1.0 of the 'Cabal' package, which is
54;; provided by GHC 8.6.5 at version 2.4.0.1. Hence, we use an older
55;; version to match the compiler's library.
62e42dfa
RV
56(define-public cabal-install
57 (package
58 (name "cabal-install")
841f1954 59 (version "2.4.0.0")
62e42dfa
RV
60 (source
61 (origin
62 (method url-fetch)
63 (uri (string-append
64 "https://hackage.haskell.org/package/cabal-install/cabal-install-"
65 version
66 ".tar.gz"))
67 (sha256
841f1954 68 (base32 "1xmyl0x8wqfrnray6ky5wy0g0samv4264fbdlzxhqsvk9dbfja8k"))))
62e42dfa 69 (build-system haskell-build-system)
841f1954
TS
70 (arguments
71 `(#:cabal-revision
72 ("2" "1xil5pim6j1ckqj61zz6l7xpfxxr3rkw2hvpws2f7pr9shk645dl")
73 #:phases
74 (modify-phases %standard-phases
75 (add-before 'configure 'update-constraints
76 (lambda _
77 (substitute* "cabal-install.cabal"
78 (("zip-archive >= 0\\.3\\.2\\.5 && < 0\\.4,")
79 "zip-archive >= 0.3.2.5 && <= 0.4.1,"))
80 #t)))))
62e42dfa
RV
81 (inputs
82 `(("ghc-async" ,ghc-async)
83 ("ghc-base16-bytestring" ,ghc-base16-bytestring)
84 ("ghc-cryptohash-sha256" ,ghc-cryptohash-sha256)
85 ("ghc-echo" ,ghc-echo)
86 ("ghc-edit-distance" ,ghc-edit-distance)
87 ("ghc-hackage-security" ,ghc-hackage-security)
88 ("ghc-hashable" ,ghc-hashable)
89 ("ghc-http" ,ghc-http)
90 ("ghc-network-uri" ,ghc-network-uri)
91 ("ghc-network" ,ghc-network)
92 ("ghc-random" ,ghc-random)
93 ("ghc-resolv" ,ghc-resolv)
94 ("ghc-tar" ,ghc-tar)
841f1954 95 ("ghc-zip-archive" ,ghc-zip-archive)
62e42dfa
RV
96 ("ghc-zlib" ,ghc-zlib)))
97 (home-page "https://www.haskell.org/cabal/")
98 (synopsis "Command-line interface for Cabal and Hackage")
99 (description
100 "The cabal command-line program simplifies the process of managing
101Haskell software by automating the fetching, configuration, compilation and
102installation of Haskell libraries and programs.")
103 (license license:bsd-3)))
104
105(define-public corrode
106 (let ((commit "b6699fb2fa552a07c6091276285a44133e5c9789"))
107 (package
108 (name "corrode")
109 (version (string-append "0.0.1-" (string-take commit 7)))
110 (source
111 (origin
112 (method git-fetch)
113 (uri (git-reference
114 (url "https://github.com/jameysharp/corrode.git")
115 (commit "b6699fb2fa552a07c6091276285a44133e5c9789")))
116 (file-name
117 (string-append name "-" version "-checkout"))
118 (sha256
119 (base32 "02v0yyj6sk4gpg2222wzsdqjxn8w66scbnf6b20x0kbmc69qcz4r"))))
120 (build-system haskell-build-system)
121 (inputs
122 `(("ghc-language-c" ,ghc-language-c)
123 ("ghc-markdown-unlit" ,ghc-markdown-unlit)))
124 (home-page "https://github.com/jameysharp/corrode")
125 (synopsis "Automatic semantics-preserving translation from C to Rust")
126 (description
127 "This program reads a C source file and prints an equivalent module in
128Rust syntax. It is intended to be useful for two different purposes:
129
130@enumerate
131@item Partial automation for migrating legacy code that was implemented in C.
132@item A new, complementary approach to static analysis for C programs.
133@end enumerate\n")
134 (license license:gpl2+))))
135
136(define-public cpphs
137 (package
138 (name "cpphs")
139 (version "1.20.8")
140 (source
141 (origin
142 (method url-fetch)
143 (uri (string-append
144 "https://hackage.haskell.org/package/" name "/"
145 name "-" version ".tar.gz"))
146 (sha256
147 (base32
148 "1bh524asqhk9v1s0wvipl0hgn7l63iy3js867yv0z3h5v2kn8vg5"))))
149 (build-system haskell-build-system)
150 (inputs
151 `(("ghc-polyparse" ,ghc-polyparse)
152 ("ghc-old-locale" ,ghc-old-locale)
153 ("ghc-old-time" ,ghc-old-time)))
154 (home-page "http://projects.haskell.org/cpphs/")
155 (synopsis "Liberalised re-implementation of cpp, the C pre-processor")
156 (description "Cpphs is a re-implementation of the C pre-processor that is
157both more compatible with Haskell, and itself written in Haskell so that it
158can be distributed with compilers. This version of the C pre-processor is
159pretty-much feature-complete and compatible with traditional (K&R)
160pre-processors. Additional features include: a plain-text mode; an option to
161unlit literate code files; and an option to turn off macro-expansion.")
162 (license (list license:lgpl2.1+ license:gpl3+))))
163
804744b3
LC
164;; Darcs has no https support: http://irclog.perlgeek.de/darcs/2016-09-17
165;; http://darcs.net/manual/Configuring_darcs.html#SECTION00440070000000000000
166;; and results of search engines will show that if the protocol is http, https
167;; is never mentioned.
168(define-public darcs
169 (package
170 (name "darcs")
171 (version "2.14.2")
172 (source
173 (origin
174 (method url-fetch)
175 (uri (string-append "https://hackage.haskell.org/package/darcs/"
176 "darcs-" version ".tar.gz"))
177 (sha256
178 (base32
179 "0zm2486gyhiga1amclbg92cd09bvki6vgh0ll75hv5kl72j61lb5"))
180 (modules '((guix build utils)))
181 ;; Remove time-dependent code for reproducibility.
182 (snippet
183 '(begin
184 (substitute* "darcs/darcs.hs"
185 (("__DATE__") "\"1970-01-01\"")
186 (("__TIME__") "\"00:00:00\""))
187 #t))))
188 (build-system haskell-build-system)
189 (arguments
0710797d
TS
190 `(#:cabal-revision
191 ("1" "0xl7j5cm704pbl2ms0dkydh7jvrz0ym76d725ifpg4h902m1zkhg")
192 #:configure-flags '("-fpkgconfig" "-fcurl" "-flibiconv" "-fthreaded"
804744b3
LC
193 "-fnetwork-uri" "-fhttp" "--flag=executable"
194 "--flag=library")
195 #:phases
196 (modify-phases %standard-phases
197 (add-after 'patch-source-shebangs 'patch-sh
198 (lambda _
199 (substitute* "tests/issue538.sh"
200 (("/bin/sh") (which "sh")))
0710797d
TS
201 #t))
202 (add-before 'configure 'update-constraints
203 (lambda _
204 (substitute* "darcs.cabal"
205 (("QuickCheck >= 2\\.8\\.2 && < 2\\.13,")
206 "QuickCheck >= 2.8.2 && < 2.14,"))
804744b3
LC
207 #t)))))
208 (inputs
209 `(("ghc-cmdargs" ,ghc-cmdargs)
210 ("ghc-split" ,ghc-split)
211 ("ghc-test-framework-quickcheck2" ,ghc-test-framework-quickcheck2)
212 ("ghc-test-framework-hunit" ,ghc-test-framework-hunit)
213 ("ghc-test-framework" ,ghc-test-framework)
214 ("ghc-quickcheck" ,ghc-quickcheck)
215 ("ghc-findbin" ,ghc-findbin)
216 ("ghc-hunit" ,ghc-hunit)
217 ("ghc-async" ,ghc-async)
218 ("ghc-attoparsec" ,ghc-attoparsec)
219 ("ghc-base16-bytestring" ,ghc-base16-bytestring)
220 ("ghc-bytestring-builder" ,ghc-bytestring-builder)
221 ("ghc-cryptohash" ,ghc-cryptohash)
222 ("ghc-data-ordlist" ,ghc-data-ordlist)
223 ("ghc-fgl" ,ghc-fgl)
224 ("ghc-system-filepath" ,ghc-system-filepath)
225 ("ghc-graphviz" ,ghc-graphviz)
226 ("ghc-hashable" ,ghc-hashable)
227 ("ghc-html" ,ghc-html)
228 ("ghc-mmap" ,ghc-mmap)
229 ("ghc-old-time" ,ghc-old-time)
804744b3
LC
230 ("ghc-random" ,ghc-random)
231 ("ghc-regex-applicative" ,ghc-regex-applicative)
232 ("ghc-regex-compat-tdfa" ,ghc-regex-compat-tdfa)
233 ("ghc-sandi" ,ghc-sandi)
234 ("ghc-shelly" ,ghc-shelly)
235 ("ghc-tar" ,ghc-tar)
236 ("ghc-transformers-compat" ,ghc-transformers-compat)
237 ("ghc-unix-compat" ,ghc-unix-compat)
238 ("ghc-utf8-string" ,ghc-utf8-string)
239 ("ghc-vector" ,ghc-vector)
240 ("ghc-zip-archive" ,ghc-zip-archive)
241 ("ghc-zlib" ,ghc-zlib)
242 ("ghc-http" ,ghc-http)
243 ("curl" ,curl)
244 ("ghc" ,ghc)
245 ("ncurses" ,ncurses)
246 ("perl" ,perl)
247 ("libiconv" ,libiconv)
248 ("ghc-network" ,ghc-network)
249 ("ghc-network-uri" ,ghc-network-uri)))
250 (native-inputs
251 `(("pkg-config" ,pkg-config)))
252 (home-page "http://darcs.net")
253 (synopsis "Distributed Revision Control System")
254 (description
255 "Darcs is a revision control system. It is:
256
257@enumerate
258@item Distributed: Every user has access to the full command set, removing boundaries
259between server and client or committer and non-committers.
260@item Interactive: Darcs is easy to learn and efficient to use because it asks you
261questions in response to simple commands, giving you choices in your work flow.
262You can choose to record one change in a file, while ignoring another. As you update
263from upstream, you can review each patch name, even the full diff for interesting
264patches.
265@item Smart: Originally developed by physicist David Roundy, darcs is based on a
266unique algebra of patches called @url{http://darcs.net/Theory,Patchtheory}.
267@end enumerate")
268 (license license:gpl2)))
269
270(define-public git-annex
271 (package
272 (name "git-annex")
f3560c62 273 (version "7.20191114")
804744b3
LC
274 (source
275 (origin
276 (method url-fetch)
277 (uri (string-append "https://hackage.haskell.org/package/"
278 "git-annex/git-annex-" version ".tar.gz"))
279 (sha256
f3560c62 280 (base32 "1afrn5g3b80f3n6ncfph6pmf9jdpc7a6ay55k2pmkn96pyv4hfmm"))))
804744b3
LC
281 (build-system haskell-build-system)
282 (arguments
283 `(#:configure-flags
ac1b0801 284 '("--flags=-Android -Assistant -Pairing -Webapp -WebDAV")
804744b3
LC
285 #:phases
286 (modify-phases %standard-phases
3d45d8f1 287 (add-before 'configure 'patch-shell-for-tests
804744b3 288 (lambda _
3d45d8f1
KM
289 ;; Shell.hs defines "/bin/sh" that is used in Git hooks. We
290 ;; shouldn't patch hooks with Guix's current bash because the
291 ;; hooks can exist after that bash is garbage collected, but
292 ;; let's temporarily patch it so that we can run the tests.
293 (copy-file "Utility/Shell.hs" "/tmp/Shell.hs")
804744b3
LC
294 (substitute* "Utility/Shell.hs"
295 (("/bin/sh") (which "sh")))
296 #t))
297 (add-before 'configure 'factor-setup
298 (lambda _
299 ;; Factor out necessary build logic from the provided
300 ;; `Setup.hs' script. The script as-is does not work because
301 ;; it cannot find its dependencies, and there is no obvious way
302 ;; to tell it where to look. Note that we do not preserve the
303 ;; code that installs man pages here.
304 (call-with-output-file "PreConf.hs"
305 (lambda (out)
306 (format out "import qualified Build.Configure as Configure~%")
307 (format out "main = Configure.run Configure.tests~%")))
308 (call-with-output-file "Setup.hs"
309 (lambda (out)
310 (format out "import Distribution.Simple~%")
311 (format out "main = defaultMain~%")))
312 #t))
313 (add-before 'configure 'pre-configure
314 (lambda _
315 (invoke "runhaskell" "PreConf.hs")
316 #t))
317 (replace 'check
318 (lambda _
319 ;; We need to set the path so that Git recognizes
320 ;; `git annex' as a custom command.
321 (setenv "PATH" (string-append (getenv "PATH") ":"
322 (getcwd) "/dist/build/git-annex"))
323 (with-directory-excursion "dist/build/git-annex"
324 (symlink "git-annex" "git-annex-shell"))
325 (invoke "git-annex" "test")
326 #t))
3d45d8f1
KM
327 (add-after 'check 'unpatch-shell-and-rebuild
328 (lambda args
329 ;; Undo `patch-shell-for-tests'.
330 (copy-file "/tmp/Shell.hs" "Utility/Shell.hs")
331 (apply (assoc-ref %standard-phases 'build) args)))
804744b3
LC
332 (add-after 'install 'install-symlinks
333 (lambda* (#:key outputs #:allow-other-keys)
334 (let* ((out (assoc-ref outputs "out"))
335 (bin (string-append out "/bin")))
336 (symlink (string-append bin "/git-annex")
337 (string-append bin "/git-annex-shell"))
338 (symlink (string-append bin "/git-annex")
339 (string-append bin "/git-remote-tor-annex"))
340 #t))))))
341 (inputs
342 `(("curl" ,curl)
343 ("ghc-aeson" ,ghc-aeson)
344 ("ghc-async" ,ghc-async)
ac1b0801 345 ("ghc-aws" ,ghc-aws)
804744b3
LC
346 ("ghc-bloomfilter" ,ghc-bloomfilter)
347 ("ghc-byteable" ,ghc-byteable)
348 ("ghc-case-insensitive" ,ghc-case-insensitive)
a4a41a7b 349 ("ghc-concurrent-output" ,ghc-concurrent-output)
804744b3
LC
350 ("ghc-crypto-api" ,ghc-crypto-api)
351 ("ghc-cryptonite" ,ghc-cryptonite)
352 ("ghc-data-default" ,ghc-data-default)
353 ("ghc-disk-free-space" ,ghc-disk-free-space)
354 ("ghc-dlist" ,ghc-dlist)
355 ("ghc-edit-distance" ,ghc-edit-distance)
356 ("ghc-esqueleto" ,ghc-esqueleto)
357 ("ghc-exceptions" ,ghc-exceptions)
358 ("ghc-feed" ,ghc-feed)
359 ("ghc-free" ,ghc-free)
360 ("ghc-hslogger" ,ghc-hslogger)
361 ("ghc-http-client" ,ghc-http-client)
362 ("ghc-http-conduit" ,ghc-http-conduit)
363 ("ghc-http-types" ,ghc-http-types)
364 ("ghc-ifelse" ,ghc-ifelse)
f2a3ff85 365 ("ghc-magic" ,ghc-magic)
804744b3
LC
366 ("ghc-memory" ,ghc-memory)
367 ("ghc-monad-control" ,ghc-monad-control)
368 ("ghc-monad-logger" ,ghc-monad-logger)
369 ("ghc-network" ,ghc-network)
370 ("ghc-old-locale" ,ghc-old-locale)
371 ("ghc-optparse-applicative" ,ghc-optparse-applicative)
372 ("ghc-persistent" ,ghc-persistent)
373 ("ghc-persistent-sqlite" ,ghc-persistent-sqlite)
374 ("ghc-persistent-template" ,ghc-persistent-template)
375 ("ghc-quickcheck" ,ghc-quickcheck)
376 ("ghc-random" ,ghc-random)
377 ("ghc-regex-tdfa" ,ghc-regex-tdfa)
378 ("ghc-resourcet" ,ghc-resourcet)
379 ("ghc-safesemaphore" ,ghc-safesemaphore)
380 ("ghc-sandi" ,ghc-sandi)
381 ("ghc-securemem" ,ghc-securemem)
382 ("ghc-socks" ,ghc-socks)
383 ("ghc-split" ,ghc-split)
804744b3
LC
384 ("ghc-stm-chans" ,ghc-stm-chans)
385 ("ghc-tagsoup" ,ghc-tagsoup)
804744b3
LC
386 ("ghc-unix-compat" ,ghc-unix-compat)
387 ("ghc-unordered-containers" ,ghc-unordered-containers)
388 ("ghc-utf8-string" ,ghc-utf8-string)
389 ("ghc-uuid" ,ghc-uuid)
390 ("git" ,git)
391 ("rsync" ,rsync)))
392 (native-inputs
393 `(("ghc-tasty" ,ghc-tasty)
394 ("ghc-tasty-hunit" ,ghc-tasty-hunit)
395 ("ghc-tasty-quickcheck" ,ghc-tasty-quickcheck)
396 ("ghc-tasty-rerun" ,ghc-tasty-rerun)))
397 (home-page "https://git-annex.branchable.com/")
398 (synopsis "Manage files with Git, without checking in their contents")
399 (description "This package allows managing files with Git, without
400checking the file contents into Git. It can store files in many places,
401such as local hard drives and cloud storage services. It can also be
402used to keep a folder in sync between computers.")
7e772cb6
KM
403 ;; The main author has released all his changes under AGPLv3+ as of March
404 ;; 2019 (7.20190219-187-g40ecf58d4). These are also licensed under the
405 ;; original GPLv3+ license, but going forward new changes will be under
406 ;; only AGPLv3+. The other licenses below cover code written by others.
407 ;; See git-annex's COPYRIGHT file for details on each file.
408 (license (list license:agpl3+
409 license:gpl3+
410 license:bsd-2
411 license:expat
412 license:gpl2))))
bfccae4e 413
62e42dfa
RV
414(define-public hlint
415 (package
416 (name "hlint")
cfbb0a95 417 (version "2.1.26")
62e42dfa
RV
418 (source
419 (origin
420 (method url-fetch)
421 (uri (string-append
422 "https://hackage.haskell.org/package/" name
423 "/" name "-" version ".tar.gz"))
424 (sha256
425 (base32
cfbb0a95 426 "16zkkpbfrd69853cdqf597fva969lirfc86b039i9zd7ghlrcayc"))))
62e42dfa
RV
427 (build-system haskell-build-system)
428 (inputs
429 `(("cpphs" ,cpphs)
430 ("ghc-unordered-containers" ,ghc-unordered-containers)
431 ("ghc-yaml" ,ghc-yaml)
432 ("ghc-vector" ,ghc-vector)
433 ("ghc-data-default" ,ghc-data-default)
434 ("ghc-cmdargs" ,ghc-cmdargs)
435 ("ghc-haskell-src-exts" ,ghc-haskell-src-exts)
436 ("ghc-haskell-src-exts-util" ,ghc-haskell-src-exts-util)
437 ("ghc-uniplate" ,ghc-uniplate)
438 ("ghc-ansi-terminal" ,ghc-ansi-terminal)
439 ("ghc-extra" ,ghc-extra)
440 ("ghc-refact" ,ghc-refact)
441 ("ghc-aeson" ,ghc-aeson)
cfbb0a95 442 ("ghc-lib-parser" ,ghc-lib-parser)
62e42dfa
RV
443 ("hscolour" ,hscolour)))
444 (home-page "http://community.haskell.org/~ndm/hlint/")
445 (synopsis "Suggest improvements for Haskell source code")
446 (description "HLint reads Haskell programs and suggests changes that
447hopefully make them easier to read. HLint also makes it easy to disable
448unwanted suggestions, and to add your own custom suggestions.")
449 (license license:bsd-3)))
450
6ec2450f
JS
451(define-public hoogle
452 (package
453 (name "hoogle")
12ee2d5d 454 (version "5.0.17.11")
6ec2450f
JS
455 (source
456 (origin
457 (method url-fetch)
458 (uri
459 (string-append
460 "https://hackage.haskell.org/package/hoogle/hoogle-"
461 version ".tar.gz"))
462 (sha256
463 (base32
12ee2d5d 464 "1svp8z9pad8z2j386pr0dda0ds8ddxab0salnz4gm51q877w93p1"))))
6ec2450f
JS
465 (build-system haskell-build-system)
466 (inputs
12ee2d5d 467 `(("ghc-quickcheck" ,ghc-quickcheck)
6ec2450f 468 ("ghc-aeson" ,ghc-aeson)
12ee2d5d
TS
469 ("ghc-blaze-html" ,ghc-blaze-html)
470 ("ghc-blaze-markup" ,ghc-blaze-markup)
6ec2450f
JS
471 ("ghc-cmdargs" ,ghc-cmdargs)
472 ("ghc-conduit" ,ghc-conduit)
473 ("ghc-conduit-extra" ,ghc-conduit-extra)
474 ("ghc-connection" ,ghc-connection)
475 ("ghc-extra" ,ghc-extra)
12ee2d5d 476 ("ghc-foundation" ,ghc-foundation)
6ec2450f
JS
477 ("ghc-old-locale" ,ghc-old-locale)
478 ("ghc-haskell-src-exts" ,ghc-haskell-src-exts)
479 ("ghc-http-conduit" ,ghc-http-conduit)
480 ("ghc-http-types" ,ghc-http-types)
481 ("ghc-js-flot" ,ghc-js-flot)
482 ("ghc-js-jquery" ,ghc-js-jquery)
483 ("ghc-mmap" ,ghc-mmap)
484 ("ghc-process-extras" ,ghc-process-extras)
485 ("ghc-resourcet" ,ghc-resourcet)
486 ("ghc-storable-tuple" ,ghc-storable-tuple)
487 ("ghc-tar" ,ghc-tar)
488 ("ghc-uniplate" ,ghc-uniplate)
489 ("ghc-utf8-string" ,ghc-utf8-string)
490 ("ghc-vector" ,ghc-vector)
491 ("ghc-wai" ,ghc-wai)
492 ("ghc-wai-logger" ,ghc-wai-logger)
493 ("ghc-warp" ,ghc-warp)
494 ("ghc-warp-tls" ,ghc-warp-tls)
495 ("ghc-zlib" ,ghc-zlib)))
496 (home-page "https://hoogle.haskell.org/")
497 (synopsis "Haskell API Search")
498 (description "Hoogle is a Haskell API search engine, which allows
499you to search many standard Haskell libraries by either function name,
500or by approximate type signature.")
501 (license license:bsd-3)))
502
62e42dfa
RV
503(define-public hscolour
504 (package
505 (name "hscolour")
506 (version "1.24.4")
507 (source
508 (origin
509 (method url-fetch)
510 (uri (string-append
511 "https://hackage.haskell.org/package/hscolour/hscolour-"
512 version
513 ".tar.gz"))
514 (sha256
515 (base32
516 "079jwph4bwllfp03yfr26s5zc6m6kw3nhb1cggrifh99haq34cr4"))))
517 (build-system haskell-build-system)
518 (home-page "https://hackage.haskell.org/package/hscolour")
519 (synopsis "Script to colourise Haskell code")
520 (description "HSColour is a small Haskell script to colourise Haskell
521code. It currently has six output formats: ANSI terminal codes (optionally
522XTerm-256colour codes), HTML 3.2 with font tags, HTML 4.01 with CSS, HTML 4.01
523with CSS and mouseover annotations, XHTML 1.0 with inline CSS styling, LaTeX,
524and mIRC chat codes.")
525 (license license:bsd-3)))
526
51add2a9
AG
527(define-public kmonad
528 (package
529 (name "kmonad")
15c06ad0 530 (version "0.3.0")
51add2a9
AG
531 (source
532 (origin
533 (method git-fetch)
534 (uri (git-reference
535 (url "https://github.com/david-janssen/kmonad.git")
15c06ad0 536 (commit version)))
51add2a9
AG
537 (file-name (git-file-name name version))
538 (sha256
15c06ad0 539 (base32 "1g40nkpldih6h1rlxjx5yf9iavr3qs1f2b6j0gd8135p5hkg8d8n"))))
51add2a9
AG
540 (build-system haskell-build-system)
541 (arguments
542 `(#:phases
543 (modify-phases %standard-phases
544 (delete 'haddock) ; Haddock fails to generate docs
545 (add-after 'install 'install-udev-rules
546 (lambda* (#:key outputs #:allow-other-keys)
547 (let* ((out (assoc-ref outputs "out"))
548 (rules (string-append out "/lib/udev/rules.d")))
549 (mkdir-p rules)
550 (call-with-output-file (string-append rules "/70-kmonad.rules")
551 (lambda (port)
552 (display
553 (string-append
554 "KERNEL==\"uinput\", MODE=\"0660\", "
555 "GROUP=\"input\", OPTIONS+=\"static_node=uinput\"\n")
556 port)))
557 #t)))
558 (add-after 'install-udev-rules 'install-documentation
559 (lambda* (#:key outputs #:allow-other-keys)
560 (let* ((out (assoc-ref outputs "out"))
561 (doc (string-append out "/share/doc/kmonad-" ,version)))
562 (install-file "README.md" doc)
563 (copy-recursively "doc" doc)
564 (copy-recursively "example" (string-append doc "/example"))
565 #t))))))
566 (inputs
567 `(("ghc-cereal" ,ghc-cereal)
568 ("ghc-exceptions" ,ghc-exceptions)
569 ("ghc-hashable" ,ghc-hashable)
570 ("ghc-lens" ,ghc-lens)
03b0c92e 571 ("ghc-megaparsec" ,ghc-megaparsec)
51add2a9
AG
572 ("ghc-optparse-applicative" ,ghc-optparse-applicative)
573 ("ghc-unagi-chan" ,ghc-unagi-chan)
574 ("ghc-unliftio" ,ghc-unliftio)
575 ("ghc-unordered-containers" ,ghc-unordered-containers)))
576 (home-page "https://github.com/david-janssen/kmonad")
577 (synopsis "Advanced keyboard manager")
578 (description "KMonad is a keyboard remapping utility that supports
579advanced functionality, such as custom keymap layers and modifiers, macros,
580and conditional mappings that send a different keycode when tapped or held.
581By operating at a lower level than most similar tools, it supports X11,
582Wayland, and Linux console environments alike.")
583 (license license:expat)))
584
bfccae4e
LC
585(define-public raincat
586 (package
587 (name "raincat")
588 (version "1.2.1")
589 (source
590 (origin
591 (method url-fetch)
1e5c274e 592 (uri (string-append "mirror://hackage/package/Raincat/"
bfccae4e
LC
593 "Raincat-" version ".tar.gz"))
594 (sha256
595 (base32
596 "10y9zi22m6hf13c9h8zd9vg7mljpwbw0r3djb6r80bna701fdf6c"))))
597 (build-system haskell-build-system)
598 (arguments
599 `(#:phases
600 (modify-phases %standard-phases
601 (add-after 'install 'wrap-executable
602 (lambda* (#:key inputs outputs #:allow-other-keys)
603 (let ((out (assoc-ref outputs "out")))
604 (wrap-program (string-append out "/bin/raincat")
605 `("LD_LIBRARY_PATH" ":" =
606 (,(string-append (assoc-ref inputs "freeglut")
607 "/lib"))))
608 #t))))))
609 (inputs
610 `(("ghc-extensible-exceptions" ,ghc-extensible-exceptions)
611 ("ghc-random" ,ghc-random)
612 ("ghc-glut" ,ghc-glut)
613 ("freeglut" ,freeglut)
614 ("ghc-opengl" ,ghc-opengl)
615 ("ghc-sdl2" ,ghc-sdl2)
616 ("ghc-sdl2-image" ,ghc-sdl2-image)
617 ("ghc-sdl2-mixer" ,ghc-sdl2-mixer)))
618 (home-page "http://www.bysusanlin.com/raincat/")
619 (synopsis "Puzzle game with a cat in lead role")
620 (description "Project Raincat is a game developed by Carnegie Mellon
621students through GCS during the Fall 2008 semester. Raincat features game
622play inspired from classics Lemmings and The Incredible Machine. The project
623proved to be an excellent learning experience for the programmers. Everything
624is programmed in Haskell.")
625 (license license:bsd-3)))
62e42dfa 626
6e241750
EF
627(define-public scroll
628 (package
629 (name "scroll")
630 (version "1.20180421")
631 (source
632 (origin
633 (method url-fetch)
634 (uri (string-append
635 "https://hackage.haskell.org/package/scroll/scroll-"
636 version ".tar.gz"))
637 (sha256
638 (base32
639 "0apzrvf99rskj4dbmn57jjxrsf19j436s8a09m950df5aws3a0wj"))))
640 (build-system haskell-build-system)
641 (inputs
642 `(("ghc-case-insensitive" ,ghc-case-insensitive)
643 ("ghc-data-default" ,ghc-data-default)
644 ("ghc-ifelse" ,ghc-ifelse)
645 ("ghc-monad-loops" ,ghc-monad-loops)
646 ("ghc-ncurses" ,ghc-ncurses)
647 ("ghc-optparse-applicative" ,ghc-optparse-applicative)
648 ("ghc-random" ,ghc-random)
649 ("ghc-vector" ,ghc-vector)))
650 (home-page "https://joeyh.name/code/scroll/")
651 (synopsis "scroll(6), a roguelike game")
652 (description
653 "You're a bookworm that's stuck on a scroll. You have to dodge between
654words and use spells to make your way down the page as the scroll is read. Go
655too slow and you'll get wound up in the scroll and crushed.")
656 (license license:gpl2)))
657
62e42dfa
RV
658(define-public shellcheck
659 (package
660 (name "shellcheck")
661 (version "0.7.0")
662 (source
663 (origin
664 (method url-fetch)
665 (uri (string-append
666 "https://hackage.haskell.org/package/ShellCheck/ShellCheck-"
667 version ".tar.gz"))
668 (sha256
669 (base32 "1vx895cp5k5h0680xfwj74lk97m9y627n965x6srds0gfnbkzy9s"))
670 (file-name (string-append name "-" version ".tar.gz"))))
671 (build-system haskell-build-system)
672 (inputs
673 `(("ghc-aeson" ,ghc-aeson)
674 ("ghc-diff" ,ghc-diff)
675 ("ghc-quickcheck" ,ghc-quickcheck)
676 ("ghc-regex-tdfa" ,ghc-regex-tdfa)))
677 (home-page "https://github.com/koalaman/shellcheck")
678 (synopsis "Static analysis for shell scripts")
679 (description "@code{shellcheck} provides static analysis for
680@command{bash} and @command{sh} shell scripts.
681It gives warnings and suggestions in order to:
682
683@enumerate
684@item Point out and clarify typical beginner's syntax issues that cause
685a shell to give cryptic error messages.
686@item Point out and clarify typical intermediate level semantic problems
687that cause a shell to behave strangely and counter-intuitively.
688@item Point out subtle caveats, corner cases and pitfalls that may cause an
689advanced user's otherwise working script to fail under future circumstances.
690@end enumerate")
691 (license license:gpl3+)))
83f9448e
JS
692
693(define-public stylish-haskell
694 (package
695 (name "stylish-haskell")
696 (version "0.9.2.2")
697 (source
698 (origin
699 (method url-fetch)
700 (uri
701 (string-append
702 "mirror://hackage/package/stylish-haskell/"
703 "stylish-haskell-" version ".tar.gz"))
704 (sha256
705 (base32
706 "1zs624xqp6j8vrl6pfv18dm8vz8hvz25grri65ximxhcizgwhnax"))))
707 (build-system haskell-build-system)
708 (inputs
709 `(("ghc-aeson" ,ghc-aeson)
710 ("ghc-file-embed" ,ghc-file-embed)
711 ("ghc-haskell-src-exts" ,ghc-haskell-src-exts)
712 ("ghc-semigroups" ,ghc-semigroups)
713 ("ghc-syb" ,ghc-syb)
714 ("ghc-yaml" ,ghc-yaml)
715 ("ghc-strict" ,ghc-strict)
716 ("ghc-optparse-applicative" ,ghc-optparse-applicative)
717 ("ghc-hunit" ,ghc-hunit)
718 ("ghc-test-framework" ,ghc-test-framework)
719 ("ghc-test-framework-hunit" ,ghc-test-framework-hunit)))
720 (home-page "https://github.com/jaspervdj/stylish-haskell")
721 (synopsis "Haskell code prettifier")
722 (description
723 "A simple Haskell code prettifier. The goal is not to format all of the
724code in a file, just clean up import statements and a few other tedious
725items. This tool tries to help where necessary without getting in the way.")
726 (license license:bsd-3)))