about summary refs log tree commit diff
path: root/pkgs/development/haskell-modules/configuration-common.nix
diff options
context:
space:
mode:
authorPeter Simons <simons@cryp.to>2017-04-21 09:47:38 +0200
committerPeter Simons <simons@cryp.to>2017-04-21 16:25:53 +0200
commit9a7ba4e7a92ef9c992eb7f1a566682f9f1ddb1c5 (patch)
tree5497c4c2a3183a5ea6283b6b31bac8bc7443fe76 /pkgs/development/haskell-modules/configuration-common.nix
parent87ec7bb087b7d475c9118dcfff8b35ef62f8ce1a (diff)
downloadnixlib-9a7ba4e7a92ef9c992eb7f1a566682f9f1ddb1c5.tar
nixlib-9a7ba4e7a92ef9c992eb7f1a566682f9f1ddb1c5.tar.gz
nixlib-9a7ba4e7a92ef9c992eb7f1a566682f9f1ddb1c5.tar.bz2
nixlib-9a7ba4e7a92ef9c992eb7f1a566682f9f1ddb1c5.tar.lz
nixlib-9a7ba4e7a92ef9c992eb7f1a566682f9f1ddb1c5.tar.xz
nixlib-9a7ba4e7a92ef9c992eb7f1a566682f9f1ddb1c5.tar.zst
nixlib-9a7ba4e7a92ef9c992eb7f1a566682f9f1ddb1c5.zip
haskell-stack: fix build by passing an old version of "store"
Diffstat (limited to 'pkgs/development/haskell-modules/configuration-common.nix')
-rw-r--r--pkgs/development/haskell-modules/configuration-common.nix8
1 files changed, 6 insertions, 2 deletions
diff --git a/pkgs/development/haskell-modules/configuration-common.nix b/pkgs/development/haskell-modules/configuration-common.nix
index 17c0601e032b..9d689d5394a8 100644
--- a/pkgs/development/haskell-modules/configuration-common.nix
+++ b/pkgs/development/haskell-modules/configuration-common.nix
@@ -686,8 +686,12 @@ self: super: {
     then appendConfigureFlag super.gtk "-fhave-quartz-gtk"
     else super.gtk;
 
-  # https://github.com/commercialhaskell/stack/issues/3001
-  stack = doJailbreak super.stack;
+  # The stack people don't bother making their own code compile in an LTS-based
+  # environment: https://github.com/commercialhaskell/stack/issues/3001.
+  stack = super.stack.overrideScope (self: super: {
+    store-core = self.store-core_0_3;
+    store = self.store_0_3_1;
+  });
 
   # The latest Hoogle needs versions not yet in LTS Haskell 7.x.
   hoogle = super.hoogle.override { haskell-src-exts = self.haskell-src-exts_1_19_1; };