summary refs log tree commit diff
path: root/pkgs/development/haskell-modules/configuration-ghcjs.nix
diff options
context:
space:
mode:
authorProfpatsch <mail@profpatsch.de>2016-11-18 16:01:23 +0100
committerProfpatsch <mail@profpatsch.de>2016-11-18 16:24:37 +0100
commita7043808dd63d3cbda42a273e60bc4a5244bd32f (patch)
tree03a51bd6a898c9a20074fde7e7a8651b24097d66 /pkgs/development/haskell-modules/configuration-ghcjs.nix
parent247d7c88d228e26a3bfda4f157618ba858114821 (diff)
downloadnixpkgs-a7043808dd63d3cbda42a273e60bc4a5244bd32f.tar
nixpkgs-a7043808dd63d3cbda42a273e60bc4a5244bd32f.tar.gz
nixpkgs-a7043808dd63d3cbda42a273e60bc4a5244bd32f.tar.bz2
nixpkgs-a7043808dd63d3cbda42a273e60bc4a5244bd32f.tar.lz
nixpkgs-a7043808dd63d3cbda42a273e60bc4a5244bd32f.tar.xz
nixpkgs-a7043808dd63d3cbda42a273e60bc4a5244bd32f.tar.zst
nixpkgs-a7043808dd63d3cbda42a273e60bc4a5244bd32f.zip
haskell/ghcjs: patch Safe out of fast-logger
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 b97cbd52fce..e232152d6dd 100644
--- a/pkgs/development/haskell-modules/configuration-ghcjs.nix
+++ b/pkgs/development/haskell-modules/configuration-ghcjs.nix
@@ -139,4 +139,15 @@ self: super:
     '';
   });
 
+
+  # https://github.com/kazu-yamamoto/logger/issues/97
+  fast-logger = overrideCabal super.fast-logger (old: {
+    postPatch = old.postPatch or "" + ''
+      # remove the Safe extensions, since ghcjs-boot directory
+      # doesn’t provide Trustworthy
+      sed -ie '/LANGUAGE Safe/d' System/Log/FastLogger/*.hs
+      cat System/Log/FastLogger/Date.hs
+    '';
+  });
+
 }