about summary refs log tree commit diff
diff options
context:
space:
mode:
authorShea Levy <shea@shealevy.com>2017-12-22 14:04:59 -0500
committerShea Levy <shea@shealevy.com>2017-12-22 14:04:59 -0500
commitea9b677046fb0f9056279aa3f675025526b0cc6e (patch)
tree5118a1672b05a2db92bcda34d56c111ddbc3ec2b
parente32bc0b5c04f0080b4c8505649921e5f7e8d6a5f (diff)
downloadnixlib-ea9b677046fb0f9056279aa3f675025526b0cc6e.tar
nixlib-ea9b677046fb0f9056279aa3f675025526b0cc6e.tar.gz
nixlib-ea9b677046fb0f9056279aa3f675025526b0cc6e.tar.bz2
nixlib-ea9b677046fb0f9056279aa3f675025526b0cc6e.tar.lz
nixlib-ea9b677046fb0f9056279aa3f675025526b0cc6e.tar.xz
nixlib-ea9b677046fb0f9056279aa3f675025526b0cc6e.tar.zst
nixlib-ea9b677046fb0f9056279aa3f675025526b0cc6e.zip
haskellPackages.coordinate: Fix build on ghc 8.2
-rw-r--r--pkgs/development/haskell-modules/configuration-ghc-8.2.x.nix9
1 files changed, 9 insertions, 0 deletions
diff --git a/pkgs/development/haskell-modules/configuration-ghc-8.2.x.nix b/pkgs/development/haskell-modules/configuration-ghc-8.2.x.nix
index b42bc8ff3428..e6ba886032b7 100644
--- a/pkgs/development/haskell-modules/configuration-ghc-8.2.x.nix
+++ b/pkgs/development/haskell-modules/configuration-ghc-8.2.x.nix
@@ -84,4 +84,13 @@ self: super: {
             stripLen = 1;
           };
     in appendPatch super.hadoop-rpc patch;
+
+  # Custom Setup.hs breaks with Cabal 2
+  # https://github.com/NICTA/coordinate/pull/4
+  coordinate =
+    let patch = pkgs.fetchpatch
+          { url = https://github.com/NICTA/coordinate/pull/4.patch;
+            sha256 = "06sfxk5cyd8nqgjyb95jkihxxk8m6dw9m3mlv94sm2qwylj86gqy";
+          };
+    in appendPatch super.coordinate patch;
 }