about summary refs log tree commit diff
path: root/pkgs/development/haskell-modules
diff options
context:
space:
mode:
authorVaibhav Sagar <vaibhav.sagar@obsidian.systems>2019-08-29 18:10:13 -0400
committerPeter Simons <simons@cryp.to>2019-09-03 09:23:29 +0200
commit4d779b0e8ed7d2925c0a593a4e6071f7c6f66fc8 (patch)
tree7ed62172a7a618178adac849615649a56bb64258 /pkgs/development/haskell-modules
parent548c363a0d11d1830e82f4c688ef485dbbb0b770 (diff)
downloadnixlib-4d779b0e8ed7d2925c0a593a4e6071f7c6f66fc8.tar
nixlib-4d779b0e8ed7d2925c0a593a4e6071f7c6f66fc8.tar.gz
nixlib-4d779b0e8ed7d2925c0a593a4e6071f7c6f66fc8.tar.bz2
nixlib-4d779b0e8ed7d2925c0a593a4e6071f7c6f66fc8.tar.lz
nixlib-4d779b0e8ed7d2925c0a593a4e6071f7c6f66fc8.tar.xz
nixlib-4d779b0e8ed7d2925c0a593a4e6071f7c6f66fc8.tar.zst
nixlib-4d779b0e8ed7d2925c0a593a4e6071f7c6f66fc8.zip
haskell.packages.ghc881.shelly: fix build
Diffstat (limited to 'pkgs/development/haskell-modules')
-rw-r--r--pkgs/development/haskell-modules/configuration-ghc-8.8.x.nix10
1 files changed, 10 insertions, 0 deletions
diff --git a/pkgs/development/haskell-modules/configuration-ghc-8.8.x.nix b/pkgs/development/haskell-modules/configuration-ghc-8.8.x.nix
index 5d33fc22c724..cdc963386f83 100644
--- a/pkgs/development/haskell-modules/configuration-ghc-8.8.x.nix
+++ b/pkgs/development/haskell-modules/configuration-ghc-8.8.x.nix
@@ -163,6 +163,16 @@ self: super: {
     broken = false;
   });
   th-expand-syns = doJailbreak super.th-expand-syns;
+  shelly = overrideCabal (appendPatch (doJailbreak super.shelly) (pkgs.fetchpatch {
+    url = "https://raw.githubusercontent.com/hvr/head.hackage/master/patches/shelly-1.8.1.patch";
+    sha256 = "1kglbwrr4ra81v9x3bfsk5l6pyl0my2a1zkr3qjjx7acn0dfpgbc";
+  })) (drv: {
+    editedCabalFile = null;
+    preConfigure = ''
+      cp -v ${pkgs.fetchurl {url = "https://raw.githubusercontent.com/hvr/head.hackage/master/patches/shelly-1.8.1.cabal"; sha256 = "0crf0m077wky76f5nav2p9q4fa5q4yhv5l4bq9hd073dzdaywhz0";}} shelly.cabal
+      sed -i -e 's/< 1.9,/< 2,/' shelly.cabal # bump time version
+    '';
+  });
   system-fileio = doJailbreak super.system-fileio;
   yaml = self.yaml_0_11_1_2;
 }