aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/elm.scm18
-rw-r--r--gnu/packages/patches/elm-compiler-relax-glsl-bound.patch19
2 files changed, 17 insertions, 20 deletions
diff --git a/gnu/packages/elm.scm b/gnu/packages/elm.scm
index 8b5ec36621..feaa9c8d5c 100644
--- a/gnu/packages/elm.scm
+++ b/gnu/packages/elm.scm
@@ -47,9 +47,25 @@
(base32 "0s93z9vr0vp5w894ghc5s34nsq09sg1msf59zfiba87sid5vgjqy"))
(patches
(search-patches "elm-compiler-disable-reactor.patch"
- "elm-compiler-relax-glsl-bound.patch"
"elm-compiler-fix-map-key.patch"))))
(build-system haskell-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'update-constraints
+ (lambda _
+ (substitute* "elm.cabal"
+ (("ansi-terminal >= 0\\.8 && < 0\\.9,")
+ "ansi-terminal >= 0.8 && < 0.10,")
+ (("containers >= 0\\.5\\.8\\.2 && < 0\\.6,")
+ "containers >= 0.5.8.2 && < 0.7,")
+ (("http-client >= 0\\.5 && < 0\\.6,")
+ "http-client >= 0.5 && < 0.7,")
+ (("language-glsl >= 0\\.0\\.2 && < 0\\.3,")
+ "language-glsl >= 0.0.2 && < 0.4,")
+ (("network >= 2\\.4 && < 2\\.7,")
+ "network >= 2.4 && < 2.9,"))
+ #t)))))
(inputs
`(("ghc-ansi-terminal" ,ghc-ansi-terminal)
("ghc-ansi-wl-pprint" ,ghc-ansi-wl-pprint)
diff --git a/gnu/packages/patches/elm-compiler-relax-glsl-bound.patch b/gnu/packages/patches/elm-compiler-relax-glsl-bound.patch
deleted file mode 100644
index 3f8be810c2..0000000000
--- a/gnu/packages/patches/elm-compiler-relax-glsl-bound.patch
+++ /dev/null
@@ -1,19 +0,0 @@
-commit 4c649a5a270aba15cc6a3913c3ad51a293047f40
-Author: Rémi Lefèvre <rlefevre@gmail.com>
-Date: Mon Sep 3 19:18:54 2018 +0200
-
- update language-glsl maximum version
-
-diff --git a/elm.cabal b/elm.cabal
-index 48aa84f0..464fe9d5 100644
---- a/elm.cabal
-+++ b/elm.cabal
-@@ -246,7 +246,7 @@ Executable elm
- http-client >= 0.5 && < 0.6,
- http-client-tls >= 0.3 && < 0.4,
- http-types >= 0.9 && < 1.0,
-- language-glsl >= 0.0.2 && < 0.3,
-+ language-glsl >= 0.0.2 && < 0.4,
- logict,
- mtl >= 2.2.1 && < 3,
- network >= 2.4 && < 2.7,