1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2015 Siniša Biđin <sinisa@bidin.eu>
3 ;;; Copyright © 2015, 2017, 2018 Ricardo Wurmus <rekado@elephly.net>
4 ;;; Copyright © 2016, 2017, 2018 ng0 <ng0@n0.is>
5 ;;; Copyright © 2017 Danny Milosavljevic <dannym@scratchpost.org>
6 ;;; Copyright © 2017, 2018 Alex Vong <alexvong1995@gmail.com>
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>
11 ;;; Copyright © 2015 Paul van der Walt <paul@denknerd.org>
12 ;;; Copyright © 2019 Kyle Meyer <kyle@kyleam.com>
13 ;;; Copyright © 2015 John Soo <jsoo1@asu.edu>
14 ;;; Copyright © 2019 Efraim Flashner <efraim@flashner.co.il>
15 ;;; Copyright © 2019 Alex Griffin <a@ajgrf.com>
16 ;;; Copyright © 2020 Alexandru-Sergiu Marton <brown121407@member.fsf.org>
17 ;;; Copyright © 2020 Brian Leung <bkleung89@gmail.com>
19 ;;; This file is part of GNU Guix.
21 ;;; GNU Guix is free software; you can redistribute it and/or modify it
22 ;;; under the terms of the GNU General Public License as published by
23 ;;; the Free Software Foundation; either version 3 of the License, or (at
24 ;;; your option) any later version.
26 ;;; GNU Guix is distributed in the hope that it will be useful, but
27 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
28 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
29 ;;; GNU General Public License for more details.
31 ;;; You should have received a copy of the GNU General Public License
32 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
34 (define-module (gnu packages haskell-apps)
35 #:use-module (guix download)
36 #:use-module (guix git-download)
37 #:use-module (guix packages)
38 #:use-module ((guix licenses) #:prefix license:)
39 #:use-module (guix build-system haskell)
40 #:use-module (gnu packages base)
41 #:use-module (gnu packages curl)
42 #:use-module (gnu packages gl)
43 #:use-module (gnu packages haskell)
44 #:use-module (gnu packages haskell-check)
45 #:use-module (gnu packages haskell-crypto)
46 #:use-module (gnu packages haskell-web)
47 #:use-module (gnu packages haskell-xyz)
48 #:use-module (gnu packages ncurses)
49 #:use-module (gnu packages perl)
50 #:use-module (gnu packages pkg-config)
51 #:use-module (gnu packages rsync)
52 #:use-module (gnu packages version-control))
54 (define-public apply-refact
62 "https://hackage.haskell.org/package/apply-refact/apply-refact-"
66 "0p2mqgjcqr1zcmk8zgr0yq7g8z1agsa6l493lkj6g3ya9lyhxgig"))))
67 (build-system haskell-build-system)
69 `(("ghc-refact" ,ghc-refact)
70 ("ghc-exactprint" ,ghc-exactprint)
72 ("ghc-temporary" ,ghc-temporary)
73 ("ghc-filemanip" ,ghc-filemanip)
74 ("ghc-unix-compat" ,ghc-unix-compat)
75 ("ghc-optparse-applicative"
76 ,ghc-optparse-applicative)))
78 `(("ghc-tasty" ,ghc-tasty)
79 ("ghc-tasty-golden" ,ghc-tasty-golden)
80 ("ghc-tasty-expected-failure"
81 ,ghc-tasty-expected-failure)
82 ("ghc-silently" ,ghc-silently)))
83 (home-page "https://hackage.haskell.org/package/apply-refact")
84 (synopsis "Perform refactorings specified by the refact library")
86 "This package lets you perform refactorings specified by the refact
87 library. It is primarily used with HLint's @code{--refactor} flag.")
88 (license license:bsd-3)))
90 ;; In Stackage LTS 14, this package is at 2.4.1.0. However, that
91 ;; version requires version 2.4.1.0 of the 'Cabal' package, which is
92 ;; provided by GHC 8.6.5 at version 2.4.0.1. Hence, we use an older
93 ;; version to match the compiler's library.
94 (define-public cabal-install
96 (name "cabal-install")
102 "https://hackage.haskell.org/package/cabal-install/cabal-install-"
106 (base32 "1xmyl0x8wqfrnray6ky5wy0g0samv4264fbdlzxhqsvk9dbfja8k"))))
107 (build-system haskell-build-system)
110 ("2" "1xil5pim6j1ckqj61zz6l7xpfxxr3rkw2hvpws2f7pr9shk645dl")
112 (modify-phases %standard-phases
113 (add-before 'configure 'update-constraints
115 (substitute* "cabal-install.cabal"
116 (("zip-archive >= 0\\.3\\.2\\.5 && < 0\\.4,")
117 "zip-archive >= 0.3.2.5 && <= 0.4.1,"))
120 `(("ghc-async" ,ghc-async)
121 ("ghc-base16-bytestring" ,ghc-base16-bytestring)
122 ("ghc-cryptohash-sha256" ,ghc-cryptohash-sha256)
123 ("ghc-echo" ,ghc-echo)
124 ("ghc-edit-distance" ,ghc-edit-distance)
125 ("ghc-hackage-security" ,ghc-hackage-security)
126 ("ghc-hashable" ,ghc-hashable)
127 ("ghc-http" ,ghc-http)
128 ("ghc-network-uri" ,ghc-network-uri)
129 ("ghc-network" ,ghc-network)
130 ("ghc-random" ,ghc-random)
131 ("ghc-resolv" ,ghc-resolv)
133 ("ghc-zip-archive" ,ghc-zip-archive)
134 ("ghc-zlib" ,ghc-zlib)))
135 (home-page "https://www.haskell.org/cabal/")
136 (synopsis "Command-line interface for Cabal and Hackage")
138 "The cabal command-line program simplifies the process of managing
139 Haskell software by automating the fetching, configuration, compilation and
140 installation of Haskell libraries and programs.")
141 (license license:bsd-3)))
143 (define-public corrode
144 (let ((commit "b6699fb2fa552a07c6091276285a44133e5c9789"))
147 (version (string-append "0.0.1-" (string-take commit 7)))
152 (url "https://github.com/jameysharp/corrode.git")
153 (commit "b6699fb2fa552a07c6091276285a44133e5c9789")))
154 (file-name (git-file-name name version))
156 (base32 "02v0yyj6sk4gpg2222wzsdqjxn8w66scbnf6b20x0kbmc69qcz4r"))))
157 (build-system haskell-build-system)
159 `(("ghc-language-c" ,ghc-language-c)
160 ("ghc-markdown-unlit" ,ghc-markdown-unlit)))
161 (home-page "https://github.com/jameysharp/corrode")
162 (synopsis "Automatic semantics-preserving translation from C to Rust")
164 "This program reads a C source file and prints an equivalent module in
165 Rust syntax. It is intended to be useful for two different purposes:
168 @item Partial automation for migrating legacy code that was implemented in C.
169 @item A new, complementary approach to static analysis for C programs.
171 (license license:gpl2+))))
181 "https://hackage.haskell.org/package/" name "/"
182 name "-" version ".tar.gz"))
185 "1bh524asqhk9v1s0wvipl0hgn7l63iy3js867yv0z3h5v2kn8vg5"))))
186 (build-system haskell-build-system)
188 `(("ghc-polyparse" ,ghc-polyparse)
189 ("ghc-old-locale" ,ghc-old-locale)
190 ("ghc-old-time" ,ghc-old-time)))
191 (home-page "http://projects.haskell.org/cpphs/")
192 (synopsis "Liberalised re-implementation of cpp, the C pre-processor")
193 (description "Cpphs is a re-implementation of the C pre-processor that is
194 both more compatible with Haskell, and itself written in Haskell so that it
195 can be distributed with compilers. This version of the C pre-processor is
196 pretty-much feature-complete and compatible with traditional (K&R)
197 pre-processors. Additional features include: a plain-text mode; an option to
198 unlit literate code files; and an option to turn off macro-expansion.")
199 (license (list license:lgpl2.1+ license:gpl3+))))
201 ;; Darcs has no https support: http://irclog.perlgeek.de/darcs/2016-09-17
202 ;; http://darcs.net/manual/Configuring_darcs.html#SECTION00440070000000000000
203 ;; and results of search engines will show that if the protocol is http, https
204 ;; is never mentioned.
212 (uri (string-append "https://hackage.haskell.org/package/darcs/"
213 "darcs-" version ".tar.gz"))
216 "0zm2486gyhiga1amclbg92cd09bvki6vgh0ll75hv5kl72j61lb5"))
217 (modules '((guix build utils)))
218 ;; Remove time-dependent code for reproducibility.
221 (substitute* "darcs/darcs.hs"
222 (("__DATE__") "\"1970-01-01\"")
223 (("__TIME__") "\"00:00:00\""))
225 (build-system haskell-build-system)
228 ("1" "0xl7j5cm704pbl2ms0dkydh7jvrz0ym76d725ifpg4h902m1zkhg")
229 #:configure-flags '("-fpkgconfig" "-fcurl" "-flibiconv" "-fthreaded"
230 "-fnetwork-uri" "-fhttp" "--flag=executable"
233 (modify-phases %standard-phases
234 (add-after 'patch-source-shebangs 'patch-sh
236 (substitute* "tests/issue538.sh"
237 (("/bin/sh") (which "sh")))
239 (add-before 'configure 'update-constraints
241 (substitute* "darcs.cabal"
242 (("QuickCheck >= 2\\.8\\.2 && < 2\\.13,")
243 "QuickCheck >= 2.8.2 && < 2.14,"))
246 `(("ghc-cmdargs" ,ghc-cmdargs)
247 ("ghc-split" ,ghc-split)
248 ("ghc-test-framework-quickcheck2" ,ghc-test-framework-quickcheck2)
249 ("ghc-test-framework-hunit" ,ghc-test-framework-hunit)
250 ("ghc-test-framework" ,ghc-test-framework)
251 ("ghc-quickcheck" ,ghc-quickcheck)
252 ("ghc-findbin" ,ghc-findbin)
253 ("ghc-hunit" ,ghc-hunit)
254 ("ghc-async" ,ghc-async)
255 ("ghc-attoparsec" ,ghc-attoparsec)
256 ("ghc-base16-bytestring" ,ghc-base16-bytestring)
257 ("ghc-bytestring-builder" ,ghc-bytestring-builder)
258 ("ghc-cryptohash" ,ghc-cryptohash)
259 ("ghc-data-ordlist" ,ghc-data-ordlist)
261 ("ghc-system-filepath" ,ghc-system-filepath)
262 ("ghc-graphviz" ,ghc-graphviz)
263 ("ghc-hashable" ,ghc-hashable)
264 ("ghc-html" ,ghc-html)
265 ("ghc-mmap" ,ghc-mmap)
266 ("ghc-old-time" ,ghc-old-time)
267 ("ghc-random" ,ghc-random)
268 ("ghc-regex-applicative" ,ghc-regex-applicative)
269 ("ghc-regex-compat-tdfa" ,ghc-regex-compat-tdfa)
270 ("ghc-sandi" ,ghc-sandi)
271 ("ghc-shelly" ,ghc-shelly)
273 ("ghc-transformers-compat" ,ghc-transformers-compat)
274 ("ghc-unix-compat" ,ghc-unix-compat)
275 ("ghc-utf8-string" ,ghc-utf8-string)
276 ("ghc-vector" ,ghc-vector)
277 ("ghc-zip-archive" ,ghc-zip-archive)
278 ("ghc-zlib" ,ghc-zlib)
279 ("ghc-http" ,ghc-http)
284 ("libiconv" ,libiconv)
285 ("ghc-network" ,ghc-network)
286 ("ghc-network-uri" ,ghc-network-uri)))
288 `(("pkg-config" ,pkg-config)))
289 (home-page "http://darcs.net")
290 (synopsis "Distributed Revision Control System")
292 "Darcs is a revision control system. It is:
295 @item Distributed: Every user has access to the full command set, removing boundaries
296 between server and client or committer and non-committers.
297 @item Interactive: Darcs is easy to learn and efficient to use because it asks you
298 questions in response to simple commands, giving you choices in your work flow.
299 You can choose to record one change in a file, while ignoring another. As you update
300 from upstream, you can review each patch name, even the full diff for interesting
302 @item Smart: Originally developed by physicist David Roundy, darcs is based on a
303 unique algebra of patches called @url{http://darcs.net/Theory,Patchtheory}.
305 (license license:gpl2)))
314 (uri (string-append "https://hackage.haskell.org/package/ghcid/"
315 "ghcid-" version ".tar.gz"))
318 "0wpm4ikrm1krz1ckzwk0srng091yh2skjal4fh95iz1hq3dw6qlw"))))
319 (build-system haskell-build-system)
321 `(("ghc-extra" ,ghc-extra)
322 ("ghc-ansi-terminal" ,ghc-ansi-terminal)
323 ("ghc-cmdargs" ,ghc-cmdargs)
324 ("ghc-fsnotify" ,ghc-fsnotify)
325 ("ghc-terminal-size" ,ghc-terminal-size)))
327 `(("ghc-tasty" ,ghc-tasty)
328 ("ghc-tasty-hunit" ,ghc-tasty-hunit)))
330 "https://github.com/ndmitchell/ghcid#readme")
331 (synopsis "GHCi based bare bones IDE")
333 "Either \"GHCi as a daemon\" or \"GHC + a bit of an IDE\". A very simple Haskell
334 development tool which shows you the errors in your project and updates them whenever
335 you save. Run @code{ghcid --topmost --command=ghci}, where @code{--topmost} makes the
336 window on top of all others (Windows only) and @code{--command} is the command to start
337 GHCi on your project (defaults to @code{ghci} if you have a @file{.ghci} file, or else
338 to @code{cabal repl}).")
339 (license license:bsd-3)))
341 (define-public git-annex
344 (version "8.20200330")
348 (uri (string-append "https://hackage.haskell.org/package/"
349 "git-annex/git-annex-" version ".tar.gz"))
351 (base32 "0xy0ld7kr4cfdl4g4yzvrzl5r60dcj33cxm28a4qz6nqm2yhd4sv"))))
352 (build-system haskell-build-system)
355 '("--flags=-Android -Assistant -Pairing -Webapp -WebDAV")
357 (modify-phases %standard-phases
358 (add-before 'configure 'patch-shell-for-tests
360 ;; Shell.hs defines "/bin/sh" that is used in Git hooks. We
361 ;; shouldn't patch hooks with Guix's current bash because the
362 ;; hooks can exist after that bash is garbage collected, but
363 ;; let's temporarily patch it so that we can run the tests.
364 (copy-file "Utility/Shell.hs" "/tmp/Shell.hs")
365 (substitute* "Utility/Shell.hs"
366 (("/bin/sh") (which "sh")))
368 (add-before 'configure 'factor-setup
370 ;; Factor out necessary build logic from the provided
371 ;; `Setup.hs' script. The script as-is does not work because
372 ;; it cannot find its dependencies, and there is no obvious way
373 ;; to tell it where to look. Note that we do not preserve the
374 ;; code that installs man pages here.
375 (call-with-output-file "PreConf.hs"
377 (format out "import qualified Build.Configure as Configure~%")
378 (format out "main = Configure.run Configure.tests~%")))
379 (call-with-output-file "Setup.hs"
381 (format out "import Distribution.Simple~%")
382 (format out "main = defaultMain~%")))
384 (add-before 'configure 'pre-configure
386 (invoke "runhaskell" "PreConf.hs")
390 ;; We need to set the path so that Git recognizes
391 ;; `git annex' as a custom command.
392 (setenv "PATH" (string-append (getenv "PATH") ":"
393 (getcwd) "/dist/build/git-annex"))
394 (with-directory-excursion "dist/build/git-annex"
395 (symlink "git-annex" "git-annex-shell"))
396 (invoke "git-annex" "test")
398 (add-after 'check 'unpatch-shell-and-rebuild
400 ;; Undo `patch-shell-for-tests'.
401 (copy-file "/tmp/Shell.hs" "Utility/Shell.hs")
402 (apply (assoc-ref %standard-phases 'build) args)))
403 (add-after 'install 'install-symlinks
404 (lambda* (#:key outputs #:allow-other-keys)
405 (let* ((out (assoc-ref outputs "out"))
406 (bin (string-append out "/bin")))
407 (symlink (string-append bin "/git-annex")
408 (string-append bin "/git-annex-shell"))
409 (symlink (string-append bin "/git-annex")
410 (string-append bin "/git-remote-tor-annex"))
414 ("ghc-aeson" ,ghc-aeson)
415 ("ghc-async" ,ghc-async)
417 ("ghc-bloomfilter" ,ghc-bloomfilter)
418 ("ghc-byteable" ,ghc-byteable)
419 ("ghc-case-insensitive" ,ghc-case-insensitive)
420 ("ghc-concurrent-output" ,ghc-concurrent-output)
421 ("ghc-crypto-api" ,ghc-crypto-api)
422 ("ghc-cryptonite" ,ghc-cryptonite)
423 ("ghc-data-default" ,ghc-data-default)
424 ("ghc-disk-free-space" ,ghc-disk-free-space)
425 ("ghc-dlist" ,ghc-dlist)
426 ("ghc-edit-distance" ,ghc-edit-distance)
427 ("ghc-esqueleto" ,ghc-esqueleto)
428 ("ghc-exceptions" ,ghc-exceptions)
429 ("ghc-feed" ,ghc-feed)
430 ("ghc-filepath-bytestring" ,ghc-filepath-bytestring)
431 ("ghc-free" ,ghc-free)
432 ("ghc-hslogger" ,ghc-hslogger)
433 ("ghc-http-client" ,ghc-http-client)
434 ("ghc-http-conduit" ,ghc-http-conduit)
435 ("ghc-http-types" ,ghc-http-types)
436 ("ghc-ifelse" ,ghc-ifelse)
437 ("ghc-magic" ,ghc-magic)
438 ("ghc-memory" ,ghc-memory)
439 ("ghc-monad-control" ,ghc-monad-control)
440 ("ghc-monad-logger" ,ghc-monad-logger)
441 ("ghc-network" ,ghc-network)
442 ("ghc-old-locale" ,ghc-old-locale)
443 ("ghc-optparse-applicative" ,ghc-optparse-applicative)
444 ("ghc-persistent" ,ghc-persistent)
445 ("ghc-persistent-sqlite" ,ghc-persistent-sqlite)
446 ("ghc-persistent-template" ,ghc-persistent-template)
447 ("ghc-quickcheck" ,ghc-quickcheck)
448 ("ghc-random" ,ghc-random)
449 ("ghc-regex-tdfa" ,ghc-regex-tdfa)
450 ("ghc-resourcet" ,ghc-resourcet)
451 ("ghc-safesemaphore" ,ghc-safesemaphore)
452 ("ghc-sandi" ,ghc-sandi)
453 ("ghc-securemem" ,ghc-securemem)
454 ("ghc-socks" ,ghc-socks)
455 ("ghc-split" ,ghc-split)
456 ("ghc-stm-chans" ,ghc-stm-chans)
457 ("ghc-tagsoup" ,ghc-tagsoup)
458 ("ghc-unix-compat" ,ghc-unix-compat)
459 ("ghc-unordered-containers" ,ghc-unordered-containers)
460 ("ghc-utf8-string" ,ghc-utf8-string)
461 ("ghc-uuid" ,ghc-uuid)
465 `(("ghc-tasty" ,ghc-tasty)
466 ("ghc-tasty-hunit" ,ghc-tasty-hunit)
467 ("ghc-tasty-quickcheck" ,ghc-tasty-quickcheck)
468 ("ghc-tasty-rerun" ,ghc-tasty-rerun)))
469 (home-page "https://git-annex.branchable.com/")
470 (synopsis "Manage files with Git, without checking in their contents")
471 (description "This package allows managing files with Git, without
472 checking the file contents into Git. It can store files in many places,
473 such as local hard drives and cloud storage services. It can also be
474 used to keep a folder in sync between computers.")
475 ;; The main author has released all his changes under AGPLv3+ as of March
476 ;; 2019 (7.20190219-187-g40ecf58d4). These are also licensed under the
477 ;; original GPLv3+ license, but going forward new changes will be under
478 ;; only AGPLv3+. The other licenses below cover code written by others.
479 ;; See git-annex's COPYRIGHT file for details on each file.
480 (license (list license:agpl3+
494 "https://hackage.haskell.org/package/" name
495 "/" name "-" version ".tar.gz"))
498 "16zkkpbfrd69853cdqf597fva969lirfc86b039i9zd7ghlrcayc"))))
499 (build-system haskell-build-system)
502 ("ghc-unordered-containers" ,ghc-unordered-containers)
503 ("ghc-yaml" ,ghc-yaml)
504 ("ghc-vector" ,ghc-vector)
505 ("ghc-data-default" ,ghc-data-default)
506 ("ghc-cmdargs" ,ghc-cmdargs)
507 ("ghc-haskell-src-exts" ,ghc-haskell-src-exts)
508 ("ghc-haskell-src-exts-util" ,ghc-haskell-src-exts-util)
509 ("ghc-uniplate" ,ghc-uniplate)
510 ("ghc-ansi-terminal" ,ghc-ansi-terminal)
511 ("ghc-extra" ,ghc-extra)
512 ("ghc-refact" ,ghc-refact)
513 ("ghc-aeson" ,ghc-aeson)
514 ("ghc-lib-parser" ,ghc-lib-parser)
515 ("hscolour" ,hscolour)))
516 (home-page "https://github.com/ndmitchell/hlint")
517 (synopsis "Suggest improvements for Haskell source code")
518 (description "HLint reads Haskell programs and suggests changes that
519 hopefully make them easier to read. HLint also makes it easy to disable
520 unwanted suggestions, and to add your own custom suggestions.")
521 (license license:bsd-3)))
523 (define-public hoogle
526 (version "5.0.17.11")
532 "https://hackage.haskell.org/package/hoogle/hoogle-"
536 "1svp8z9pad8z2j386pr0dda0ds8ddxab0salnz4gm51q877w93p1"))))
537 (build-system haskell-build-system)
539 `(("ghc-quickcheck" ,ghc-quickcheck)
540 ("ghc-aeson" ,ghc-aeson)
541 ("ghc-blaze-html" ,ghc-blaze-html)
542 ("ghc-blaze-markup" ,ghc-blaze-markup)
543 ("ghc-cmdargs" ,ghc-cmdargs)
544 ("ghc-conduit" ,ghc-conduit)
545 ("ghc-conduit-extra" ,ghc-conduit-extra)
546 ("ghc-connection" ,ghc-connection)
547 ("ghc-extra" ,ghc-extra)
548 ("ghc-foundation" ,ghc-foundation)
549 ("ghc-old-locale" ,ghc-old-locale)
550 ("ghc-haskell-src-exts" ,ghc-haskell-src-exts)
551 ("ghc-http-conduit" ,ghc-http-conduit)
552 ("ghc-http-types" ,ghc-http-types)
553 ("ghc-js-flot" ,ghc-js-flot)
554 ("ghc-js-jquery" ,ghc-js-jquery)
555 ("ghc-mmap" ,ghc-mmap)
556 ("ghc-process-extras" ,ghc-process-extras)
557 ("ghc-resourcet" ,ghc-resourcet)
558 ("ghc-storable-tuple" ,ghc-storable-tuple)
560 ("ghc-uniplate" ,ghc-uniplate)
561 ("ghc-utf8-string" ,ghc-utf8-string)
562 ("ghc-vector" ,ghc-vector)
564 ("ghc-wai-logger" ,ghc-wai-logger)
565 ("ghc-warp" ,ghc-warp)
566 ("ghc-warp-tls" ,ghc-warp-tls)
567 ("ghc-zlib" ,ghc-zlib)))
568 (home-page "https://hoogle.haskell.org/")
569 (synopsis "Haskell API Search")
570 (description "Hoogle is a Haskell API search engine, which allows
571 you to search many standard Haskell libraries by either function name,
572 or by approximate type signature.")
573 (license license:bsd-3)))
575 (define-public hscolour
583 "https://hackage.haskell.org/package/hscolour/hscolour-"
588 "079jwph4bwllfp03yfr26s5zc6m6kw3nhb1cggrifh99haq34cr4"))))
589 (build-system haskell-build-system)
590 (home-page "https://hackage.haskell.org/package/hscolour")
591 (synopsis "Script to colourise Haskell code")
592 (description "HSColour is a small Haskell script to colourise Haskell
593 code. It currently has six output formats: ANSI terminal codes (optionally
594 XTerm-256colour codes), HTML 3.2 with font tags, HTML 4.01 with CSS, HTML 4.01
595 with CSS and mouseover annotations, XHTML 1.0 with inline CSS styling, LaTeX,
596 and mIRC chat codes.")
597 (license license:bsd-3)))
599 (define-public kmonad
607 (url "https://github.com/david-janssen/kmonad.git")
609 (file-name (git-file-name name version))
611 (base32 "1g40nkpldih6h1rlxjx5yf9iavr3qs1f2b6j0gd8135p5hkg8d8n"))))
612 (build-system haskell-build-system)
615 (modify-phases %standard-phases
616 (delete 'haddock) ; Haddock fails to generate docs
617 (add-after 'install 'install-udev-rules
618 (lambda* (#:key outputs #:allow-other-keys)
619 (let* ((out (assoc-ref outputs "out"))
620 (rules (string-append out "/lib/udev/rules.d")))
622 (call-with-output-file (string-append rules "/70-kmonad.rules")
626 "KERNEL==\"uinput\", MODE=\"0660\", "
627 "GROUP=\"input\", OPTIONS+=\"static_node=uinput\"\n")
630 (add-after 'install-udev-rules 'install-documentation
631 (lambda* (#:key outputs #:allow-other-keys)
632 (let* ((out (assoc-ref outputs "out"))
633 (doc (string-append out "/share/doc/kmonad-" ,version)))
634 (install-file "README.md" doc)
635 (copy-recursively "doc" doc)
636 (copy-recursively "example" (string-append doc "/example"))
639 `(("ghc-cereal" ,ghc-cereal)
640 ("ghc-exceptions" ,ghc-exceptions)
641 ("ghc-hashable" ,ghc-hashable)
642 ("ghc-lens" ,ghc-lens)
643 ("ghc-megaparsec" ,ghc-megaparsec)
644 ("ghc-optparse-applicative" ,ghc-optparse-applicative)
645 ("ghc-unagi-chan" ,ghc-unagi-chan)
646 ("ghc-unliftio" ,ghc-unliftio)
647 ("ghc-unordered-containers" ,ghc-unordered-containers)))
648 (home-page "https://github.com/david-janssen/kmonad")
649 (synopsis "Advanced keyboard manager")
650 (description "KMonad is a keyboard remapping utility that supports
651 advanced functionality, such as custom keymap layers and modifiers, macros,
652 and conditional mappings that send a different keycode when tapped or held.
653 By operating at a lower level than most similar tools, it supports X11,
654 Wayland, and Linux console environments alike.")
655 (license license:expat)))
657 (define-public raincat
664 (uri (string-append "mirror://hackage/package/Raincat/"
665 "Raincat-" version ".tar.gz"))
668 "10y9zi22m6hf13c9h8zd9vg7mljpwbw0r3djb6r80bna701fdf6c"))))
669 (build-system haskell-build-system)
672 (modify-phases %standard-phases
673 (add-after 'install 'wrap-executable
674 (lambda* (#:key inputs outputs #:allow-other-keys)
675 (let ((out (assoc-ref outputs "out")))
676 (wrap-program (string-append out "/bin/raincat")
677 `("LD_LIBRARY_PATH" ":" =
678 (,(string-append (assoc-ref inputs "freeglut")
682 `(("ghc-extensible-exceptions" ,ghc-extensible-exceptions)
683 ("ghc-random" ,ghc-random)
684 ("ghc-glut" ,ghc-glut)
685 ("freeglut" ,freeglut)
686 ("ghc-opengl" ,ghc-opengl)
687 ("ghc-sdl2" ,ghc-sdl2)
688 ("ghc-sdl2-image" ,ghc-sdl2-image)
689 ("ghc-sdl2-mixer" ,ghc-sdl2-mixer)))
690 (home-page "https://www.gamecreation.org/games/raincat")
691 (synopsis "Puzzle game with a cat in lead role")
692 (description "Project Raincat is a game developed by Carnegie Mellon
693 students through GCS during the Fall 2008 semester. Raincat features game
694 play inspired from classics Lemmings and The Incredible Machine. The project
695 proved to be an excellent learning experience for the programmers. Everything
696 is programmed in Haskell.")
697 (license license:bsd-3)))
699 (define-public scroll
702 (version "1.20180421")
707 "https://hackage.haskell.org/package/scroll/scroll-"
711 "0apzrvf99rskj4dbmn57jjxrsf19j436s8a09m950df5aws3a0wj"))))
712 (build-system haskell-build-system)
714 `(("ghc-case-insensitive" ,ghc-case-insensitive)
715 ("ghc-data-default" ,ghc-data-default)
716 ("ghc-ifelse" ,ghc-ifelse)
717 ("ghc-monad-loops" ,ghc-monad-loops)
718 ("ghc-ncurses" ,ghc-ncurses)
719 ("ghc-optparse-applicative" ,ghc-optparse-applicative)
720 ("ghc-random" ,ghc-random)
721 ("ghc-vector" ,ghc-vector)))
722 (home-page "https://joeyh.name/code/scroll/")
723 (synopsis "scroll(6), a roguelike game")
725 "You're a bookworm that's stuck on a scroll. You have to dodge between
726 words and use spells to make your way down the page as the scroll is read. Go
727 too slow and you'll get wound up in the scroll and crushed.")
728 (license license:gpl2)))
730 (define-public shellcheck
738 "https://hackage.haskell.org/package/ShellCheck/ShellCheck-"
741 (base32 "1vx895cp5k5h0680xfwj74lk97m9y627n965x6srds0gfnbkzy9s"))
742 (file-name (string-append name "-" version ".tar.gz"))))
743 (build-system haskell-build-system)
745 `(("ghc-aeson" ,ghc-aeson)
746 ("ghc-diff" ,ghc-diff)
747 ("ghc-quickcheck" ,ghc-quickcheck)
748 ("ghc-regex-tdfa" ,ghc-regex-tdfa)))
749 (home-page "https://www.shellcheck.net/")
750 (synopsis "Static analysis for shell scripts")
751 (description "@code{shellcheck} provides static analysis for
752 @command{bash} and @command{sh} shell scripts.
753 It gives warnings and suggestions in order to:
756 @item Point out and clarify typical beginner's syntax issues that cause
757 a shell to give cryptic error messages.
758 @item Point out and clarify typical intermediate level semantic problems
759 that cause a shell to behave strangely and counter-intuitively.
760 @item Point out subtle caveats, corner cases and pitfalls that may cause an
761 advanced user's otherwise working script to fail under future circumstances.
763 (license license:gpl3+)))
765 (define-public stylish-haskell
767 (name "stylish-haskell")
774 "mirror://hackage/package/stylish-haskell/"
775 "stylish-haskell-" version ".tar.gz"))
778 "1zs624xqp6j8vrl6pfv18dm8vz8hvz25grri65ximxhcizgwhnax"))))
779 (build-system haskell-build-system)
781 `(("ghc-aeson" ,ghc-aeson)
782 ("ghc-file-embed" ,ghc-file-embed)
783 ("ghc-haskell-src-exts" ,ghc-haskell-src-exts)
784 ("ghc-semigroups" ,ghc-semigroups)
786 ("ghc-yaml" ,ghc-yaml)
787 ("ghc-strict" ,ghc-strict)
788 ("ghc-optparse-applicative" ,ghc-optparse-applicative)
789 ("ghc-hunit" ,ghc-hunit)
790 ("ghc-test-framework" ,ghc-test-framework)
791 ("ghc-test-framework-hunit" ,ghc-test-framework-hunit)))
792 (home-page "https://github.com/jaspervdj/stylish-haskell")
793 (synopsis "Haskell code prettifier")
794 (description "Stylish-haskell is a Haskell code prettifier. The goal is
795 not to format all of the code in a file, to avoid \"getting in the way\".
796 However, this tool can e.g. clean up import statements and help doing various
797 tasks that get tedious very quickly. It can
800 Align and sort @code{import} statements
802 Group and wrap @code{{-# LANGUAGE #-}} pragmas, remove (some) redundant
805 Remove trailing whitespaces
807 Align branches in @code{case} and fields in records
809 Convert line endings (customisable)
811 Replace tabs by four spaces (turned off by default)
813 Replace some ASCII sequences by their Unicode equivalent (turned off by
816 (license license:bsd-3)))
818 (define-public ghc-stylish-haskell
819 (deprecated-package "ghc-stylish-haskell" stylish-haskell))