From ea9b677046fb0f9056279aa3f675025526b0cc6e Mon Sep 17 00:00:00 2001 From: Shea Levy Date: Fri, 22 Dec 2017 14:04:59 -0500 Subject: [PATCH] haskellPackages.coordinate: Fix build on ghc 8.2 --- .../haskell-modules/configuration-ghc-8.2.x.nix | 9 +++++++++ 1 file changed, 9 insertions(+) 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 b42bc8ff342..e6ba886032b 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; }