diff options
author | Profpatsch <mail@profpatsch.de> | 2016-11-18 16:01:23 +0100 |
---|---|---|
committer | Profpatsch <mail@profpatsch.de> | 2016-11-18 16:24:37 +0100 |
commit | a7043808dd63d3cbda42a273e60bc4a5244bd32f (patch) | |
tree | 03a51bd6a898c9a20074fde7e7a8651b24097d66 /pkgs/development/haskell-modules/configuration-ghcjs.nix | |
parent | 247d7c88d228e26a3bfda4f157618ba858114821 (diff) |
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.nix | 11 |
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 b97cbd52fce57..e232152d6dd16 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 + ''; + }); + } |