summary refs log tree commit diff
path: root/pkgs/development/haskell-modules/configuration-ghcjs.nix
diff options
context:
space:
mode:
authorDavid Johnson <djohnson.m@gmail.com>2017-07-12 14:27:03 +0000
committerDavid Johnson <djohnson.m@gmail.com>2017-07-12 18:47:18 +0000
commit51edf3bf88e4c1ba7a32ac9bfecfdbf69322bad0 (patch)
tree77d35881a295698ee3ffb245467341d3a5cbecb6 /pkgs/development/haskell-modules/configuration-ghcjs.nix
parentd314a65c2384c230fc1d231581ce05a21aae8f32 (diff)
downloadnixpkgs-51edf3bf88e4c1ba7a32ac9bfecfdbf69322bad0.tar
nixpkgs-51edf3bf88e4c1ba7a32ac9bfecfdbf69322bad0.tar.gz
nixpkgs-51edf3bf88e4c1ba7a32ac9bfecfdbf69322bad0.tar.bz2
nixpkgs-51edf3bf88e4c1ba7a32ac9bfecfdbf69322bad0.tar.lz
nixpkgs-51edf3bf88e4c1ba7a32ac9bfecfdbf69322bad0.tar.xz
nixpkgs-51edf3bf88e4c1ba7a32ac9bfecfdbf69322bad0.tar.zst
nixpkgs-51edf3bf88e4c1ba7a32ac9bfecfdbf69322bad0.zip
miso: init at 0.2.0.0
Diffstat (limited to 'pkgs/development/haskell-modules/configuration-ghcjs.nix')
-rw-r--r--pkgs/development/haskell-modules/configuration-ghcjs.nix11
1 files changed, 11 insertions, 0 deletions
diff --git a/pkgs/development/haskell-modules/configuration-ghcjs.nix b/pkgs/development/haskell-modules/configuration-ghcjs.nix
index fd7f15008d2..7efb75c3329 100644
--- a/pkgs/development/haskell-modules/configuration-ghcjs.nix
+++ b/pkgs/development/haskell-modules/configuration-ghcjs.nix
@@ -150,6 +150,17 @@ self: super:
   http2 = addBuildDepends super.http2 [ self.aeson self.aeson-pretty self.hex self.unordered-containers self.vector self.word8 ];
   # ghcjsBoot uses async 2.0.1.6, protolude wants 2.1.*
 
+  # These are the correct dependencies specified when calling `cabal2nix --compiler ghcjs`
+  # By default, the `miso` derivation present in hackage-packages.nix
+  # does not contain dependencies suitable for ghcjs
+  miso = overrideCabal super.miso (drv: {
+      libraryHaskellDepends = with self; [
+        BoundedChan bytestring containers ghcjs-base aeson base
+        http-api-data http-types network-uri scientific servant text
+        transformers unordered-containers vector
+      ];
+    });
+
   pqueue = overrideCabal super.pqueue (drv: {
     postPatch = ''
       sed -i -e '12s|null|Data.PQueue.Internals.null|' Data/PQueue/Internals.hs