diff options
author | Maxim Cournoyer <[email protected]> | 2022-01-25 22:07:13 -0500 |
---|---|---|
committer | Maxim Cournoyer <[email protected]> | 2022-01-25 22:07:13 -0500 |
commit | 1a5302435ff0d2822b823f5a6fe01faa7a85c629 (patch) | |
tree | ac7810c88b560532f22d2bab2e59609cd7305c21 /gnu/packages/purescript.scm | |
parent | 3ff2ac4980dacf10087e4b42bd9fbc490591900c (diff) | |
parent | 070b8a893febd6e7d8b2b7c8c4dcebacf7845aa9 (diff) |
Merge branch 'master' into staging.
With "conflicts" solved (all in favor of master except git) in:
gnu/local.mk
gnu/packages/databases.scm
gnu/packages/glib.scm
gnu/packages/gnome.scm
gnu/packages/gnupg.scm
gnu/packages/gnuzilla.scm
gnu/packages/graphics.scm
gnu/packages/gstreamer.scm
gnu/packages/gtk.scm
gnu/packages/linux.scm
gnu/packages/machine-learning.scm
gnu/packages/networking.scm
gnu/packages/polkit.scm
gnu/packages/pulseaudio.scm
gnu/packages/rpc.scm
gnu/packages/rust.scm
gnu/packages/version-control.scm
gnu/packages/w3m.scm
Diffstat (limited to 'gnu/packages/purescript.scm')
-rw-r--r-- | gnu/packages/purescript.scm | 216 |
1 files changed, 134 insertions, 82 deletions
diff --git a/gnu/packages/purescript.scm b/gnu/packages/purescript.scm index cc51b163c9..fe135be5d9 100644 --- a/gnu/packages/purescript.scm +++ b/gnu/packages/purescript.scm @@ -1,6 +1,7 @@ ;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2020 John Soo <[email protected]> ;;; Copyright © 2020 Bonface Munyoki Kilyungi <[email protected]> +;;; Copyright © 2021 Tobias Geerinckx-Rice <[email protected]> ;;; ;;; This file is part of GNU Guix. ;;; @@ -30,107 +31,158 @@ #:use-module (guix build-system haskell) #:use-module ((guix licenses) #:prefix license:)) -(define ghc-happy-1.19.9 - (package - (inherit ghc-happy) - (version "1.19.9") - (source - (origin - (method url-fetch) - (uri (string-append - "https://hackage.haskell.org/package/happy/happy-" - version - ".tar.gz")) - (sha256 - (base32 - "138xpxdb7x62lpmgmb6b3v3vgdqqvqn4273jaap3mjmc2gla709y")))))) - (define-public purescript (package (name "purescript") - (version "0.13.8") + (version "0.14.5") (source (origin (method url-fetch) (uri (string-append - "mirror://hackage/package/purescript/purescript-" + "https://hackage.haskell.org/package/purescript/purescript-" version ".tar.gz")) (sha256 - (base32 - "0sh9z3ir3jiwmi5h95v9p7j746xxidg1hrxha89c0zl6vr4sq7vh")) - (patches (search-patches "purescript-relax-dependencies.patch")))) + (base32 "06f318hdah076vkviw1ryyg2p0gpbabsp8lbm5x03f2qv92n9j1n")))) (build-system haskell-build-system) (inputs - `(("ghc-glob" ,ghc-glob) - ("ghc-aeson" ,ghc-aeson) - ("ghc-aeson-better-errors" ,ghc-aeson-better-errors) - ("ghc-aeson-pretty" ,ghc-aeson-pretty) - ("ghc-ansi-terminal" ,ghc-ansi-terminal) - ("ghc-base-compat" ,ghc-base-compat) - ("ghc-blaze-html" ,ghc-blaze-html) - ("ghc-bower-json" ,ghc-bower-json) - ("ghc-boxes" ,ghc-boxes) - ("ghc-cborg" ,ghc-cborg) - ("ghc-cheapskate" ,ghc-cheapskate) - ("ghc-clock" ,ghc-clock) - ("ghc-cryptonite" ,ghc-cryptonite) - ("ghc-data-ordlist" ,ghc-data-ordlist) - ("ghc-dlist" ,ghc-dlist) - ("ghc-edit-distance" ,ghc-edit-distance) - ("ghc-file-embed" ,ghc-file-embed) - ("ghc-fsnotify" ,ghc-fsnotify) - ("ghc-happy" ,ghc-happy) - ("ghc-language-javascript" ,ghc-language-javascript) - ("ghc-lifted-async" ,ghc-lifted-async) - ("ghc-lifted-base" ,ghc-lifted-base) - ("ghc-memory" ,ghc-memory) - ("ghc-microlens-platform" ,ghc-microlens-platform) - ("ghc-monad-control" ,ghc-monad-control) - ("ghc-monad-logger" ,ghc-monad-logger) - ("ghc-network" ,ghc-network) - ("ghc-parallel" ,ghc-parallel) - ("ghc-pattern-arrows" ,ghc-pattern-arrows) - ("ghc-protolude" ,ghc-protolude) - ("ghc-regex-tdfa" ,ghc-regex-tdfa) - ("ghc-safe" ,ghc-safe) - ("ghc-scientific" ,ghc-scientific) - ("ghc-semialign" ,ghc-semialign) - ("ghc-semigroups" ,ghc-semigroups) - ("ghc-serialise" ,ghc-serialise) - ("ghc-sourcemap" ,ghc-sourcemap) - ("ghc-split" ,ghc-split) - ("ghc-stringsearch" ,ghc-stringsearch) - ("ghc-syb" ,ghc-syb) - ("ghc-these" ,ghc-these) - ("ghc-transformers-base" ,ghc-transformers-base) - ("ghc-transformers-compat" ,ghc-transformers-compat) - ("ghc-unordered-containers" ,ghc-unordered-containers) - ("ghc-utf8-string" ,ghc-utf8-string) - ("ghc-vector" ,ghc-vector) - ("ghc-ansi-wl-pprint" ,ghc-ansi-wl-pprint) - ("ghc-http-types" ,ghc-http-types) - ("ghc-network" ,ghc-network) - ("ghc-optparse-applicative" ,ghc-optparse-applicative) - ("ghc-wai" ,ghc-wai) - ("ghc-wai-websockets" ,ghc-wai-websockets) - ("ghc-warp" ,ghc-warp) - ("ghc-websockets" ,ghc-websockets))) + (list ghc-glob + ghc-aeson + ghc-aeson-better-errors + ghc-aeson-pretty + ghc-ansi-terminal + ghc-base-compat + ghc-blaze-html + ghc-bower-json + ghc-boxes + ghc-cborg + ghc-cheapskate + ghc-clock + ghc-cryptonite + ghc-data-ordlist + ghc-dlist + ghc-edit-distance + ghc-file-embed + ghc-fsnotify + ghc-happy + ghc-language-javascript + ghc-lifted-async + ghc-lifted-base + ghc-memory + ghc-microlens-platform + ghc-monad-control + ghc-monad-logger + ghc-network + ghc-parallel + ghc-pattern-arrows + ghc-protolude + ghc-purescript-cst + ghc-regex-tdfa + ghc-safe + ghc-scientific + ghc-semialign + ghc-semigroups + ghc-serialise + ghc-sourcemap + ghc-split + ghc-stringsearch + ghc-syb + ghc-these + ghc-transformers-base + ghc-transformers-compat + ghc-unordered-containers + ghc-utf8-string + ghc-vector + ghc-ansi-wl-pprint + ghc-http-types + ghc-network + ghc-optparse-applicative-0.15.1.0 ; XXX: needs specific version + ghc-wai + ghc-wai-websockets + ghc-warp + ghc-websockets)) (native-inputs - `(("ghc-happy" ,ghc-happy-1.19.9) ; build fails with 1.19.12 - ("ghc-hunit" ,ghc-hunit) - ("ghc-hspec" ,ghc-hspec) - ("hspec-discover" ,hspec-discover) - ("ghc-tasty" ,ghc-tasty) - ("ghc-tasty-golden" ,ghc-tasty-golden) - ("ghc-tasty-hspec" ,ghc-tasty-hspec))) + (list ghc-happy + ghc-hunit + ghc-hspec + hspec-discover + ghc-tasty + ghc-tasty-golden + ghc-tasty-hspec)) (arguments `(;; Tests require npm #:tests? #f - #:configure-flags '("--flags=release"))) + #:configure-flags '("--flags=release") + #:phases + (modify-phases %standard-phases + (add-before 'configure 'update-constraints + (lambda _ + (substitute* "purescript.cabal" + (("\\b(ansi-terminal|cryptonite|dlist|language-javascript)\\s+[^,]+" all dep) + dep))))))) (home-page "https://www.purescript.org/") (synopsis "Haskell inspired programming language compiling to JavaScript") (description "Purescript is a small strongly, statically typed programming language with expressive types, inspired by Haskell and compiling to JavaScript.") (license license:bsd-3))) + +(define-public ghc-purescript-cst + (package + (name "ghc-purescript-cst") + (version "0.4.0.0") + (source + (origin + (method url-fetch) + (uri (string-append + "https://hackage.haskell.org/package/purescript-cst/purescript-cst-" + version + ".tar.gz")) + (sha256 + (base32 "0r3f5lr9lrv9wpgkwj6nyl42lvxryj2lvr1w7ld4gki8ylq24n8g")))) + (build-system haskell-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-before 'configure 'update-constraints + (lambda _ + (substitute* "purescript-cst.cabal" + (("\\b(dlist)\\s+[^,]+" all dep) + dep))))))) + (inputs + (list ghc-aeson + ghc-base-compat + ghc-dlist + ghc-microlens + ghc-protolude + ghc-scientific + ghc-semigroups + ghc-serialise + ghc-vector)) + (native-inputs (list ghc-happy)) + (home-page "https://www.purescript.org/") + (synopsis "PureScript Programming Language Concrete Syntax Tree") + (description + "This package implements parser for the PureScript programming language.") + (license license:bsd-3))) + +(define-public ghc-optparse-applicative-0.15.1.0 + (package + (inherit ghc-optparse-applicative) + (name "ghc-optparse-applicative") + (version "0.15.1.0") + (source + (origin + (method url-fetch) + (uri (string-append + "https://hackage.haskell.org/package/optparse-applicative/optparse-applicative-" + version + ".tar.gz")) + (sha256 + (base32 "1ws6y3b3f6hsgv0ff0yp6lw4hba1rps4dnvry3yllng0s5gngcsd")))) + (inputs + (list ghc-transformers-compat ghc-ansi-wl-pprint)) + (native-inputs (list ghc-quickcheck)) + (arguments + `(#:cabal-revision + ("1" "0zmhqkd96v2z1ilhqdkd9z4jgsnsxb8yi2479ind8m5zm9363zr9"))))) |