[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
304/328: gnu: elm-compiler: Fix Cabal dependency constraints.
From: |
guix-commits |
Subject: |
304/328: gnu: elm-compiler: Fix Cabal dependency constraints. |
Date: |
Sat, 16 Nov 2019 19:33:30 -0500 (EST) |
samplet pushed a commit to branch wip-haskell-updates
in repository guix.
commit af48120907363da778d5cefbd7cf6daf86c12608
Author: Timothy Sample <address@hidden>
Date: Sat Nov 16 09:42:08 2019 -0500
gnu: elm-compiler: Fix Cabal dependency constraints.
This package used a patch to update the Cabal version constraints for
'language-glsl'. This is now done in a phase for consistency with
other Haskell packages.
* gnu/packages/elm.scm (elm-compiler): Add a phase that updates the
Cabal file to allow for newer versions of 'ansi-terminal',
'containers', 'http-client', 'language-glsl', and 'network'.
[source]: Remove 'elm-compiler-relax-glsl-bound.patch'.
* gnu/packages/patches/elm-compiler-relax-glsl-bound.patch: Delete file.
* gnu/local.mk: Remove it.
---
gnu/local.mk | 1 -
gnu/packages/elm.scm | 18 +++++++++++++++++-
.../patches/elm-compiler-relax-glsl-bound.patch | 19 -------------------
3 files changed, 17 insertions(+), 21 deletions(-)
diff --git a/gnu/local.mk b/gnu/local.mk
index 933eee9..8c4cb43 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -796,7 +796,6 @@ dist_patch_DATA =
\
%D%/packages/patches/elixir-path-length.patch \
%D%/packages/patches/elm-compiler-disable-reactor.patch \
%D%/packages/patches/elm-compiler-fix-map-key.patch \
- %D%/packages/patches/elm-compiler-relax-glsl-bound.patch \
%D%/packages/patches/emacs-dired-toggle-sudo-emacs-26.patch \
%D%/packages/patches/emacs-exec-path.patch \
%D%/packages/patches/emacs-fix-scheme-indent-function.patch \
diff --git a/gnu/packages/elm.scm b/gnu/packages/elm.scm
index 8b5ec36..feaa9c8 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 3f8be81..0000000
--- a/gnu/packages/patches/elm-compiler-relax-glsl-bound.patch
+++ /dev/null
@@ -1,19 +0,0 @@
-commit 4c649a5a270aba15cc6a3913c3ad51a293047f40
-Author: Rémi Lefèvre <address@hidden>
-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,
- 288/328: gnu: ghc-tasty-rerun: Update to 1.1.14., (continued)
- 288/328: gnu: ghc-tasty-rerun: Update to 1.1.14., guix-commits, 2019/11/16
- 306/328: gnu: Add ghc-timezone-series., guix-commits, 2019/11/16
- 310/328: gnu: Add ghc-tar-conduit., guix-commits, 2019/11/16
- 319/328: gnu: Add ghc-numeric-extras., guix-commits, 2019/11/16
- 316/328: gnu: Add ghc-monoid-extras., guix-commits, 2019/11/16
- 320/328: gnu: Add ghc-intervals., guix-commits, 2019/11/16
- 324/328: gnu: Add ghc-svg-builder., guix-commits, 2019/11/16
- 326/328: gnu: ngless: Update to 1.0.1., guix-commits, 2019/11/16
- 291/328: gnu: ghc-microlens-aeson: Patch tests for i686-linux., guix-commits, 2019/11/16
- 303/328: gnu: idris: Fix Cabal dependency constraints., guix-commits, 2019/11/16
- 304/328: gnu: elm-compiler: Fix Cabal dependency constraints.,
guix-commits <=
- 305/328: gnu: Add ghc-alsa-mixer., guix-commits, 2019/11/16
- 308/328: gnu: Add ghc-dbus., guix-commits, 2019/11/16
- 315/328: gnu: Add ghc-groups., guix-commits, 2019/11/16
- 317/328: gnu: Add ghc-dual-tree., guix-commits, 2019/11/16
- 311/328: gnu: Add ghc-testing-type-modifiers., guix-commits, 2019/11/16
- 325/328: gnu: Add ghc-diagrams-svg., guix-commits, 2019/11/16
- 327/328: gnu: ghc-haddock-api: Update to 2.22.0., guix-commits, 2019/11/16