Skip to content

Commit

Permalink
Merge pull request #22373 from LumiGuide/shelly-ghc802-fix
Browse files Browse the repository at this point in the history
shelly: fix build on GHC-8.0.2
(cherry picked from commit 437d236)
  • Loading branch information
peti committed Feb 2, 2017
1 parent e7d68fd commit b3e955c
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion pkgs/development/haskell-modules/configuration-common.nix
Original file line number Diff line number Diff line change
Expand Up @@ -852,7 +852,17 @@ self: super: {

# https://github.com/yesodweb/Shelly.hs/issues/106
# https://github.com/yesodweb/Shelly.hs/issues/108
shelly = dontCheck super.shelly;
# https://github.com/yesodweb/Shelly.hs/issues/130
shelly =
let drv = appendPatch (dontCheck (doJailbreak super.shelly)) (pkgs.fetchpatch {
url = "https://github.com/k0001/Shelly.hs/commit/32a1e290961755e7b2379f59faa49b13d03dfef6.patch";
sha256 = "0ccq0qly8bxxv64dk97a44ng6hb01j6ajs0sp3f2nn0hf5j3xv69";
});
in overrideCabal drv (drv : {
# doJailbreak doesn't seem to work for build-depends inside an
# if-then-else block so we have to do it manually.
postPatch = "sed -i 's/base >=4\.6 \&\& <4\.9\.1/base -any/' shelly.cabal";
});

# https://github.com/bos/configurator/issues/22
configurator = dontCheck super.configurator;
Expand Down

0 comments on commit b3e955c

Please sign in to comment.