summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--pkgs/development/haskell-modules/configuration-common.nix5
-rw-r--r--pkgs/development/haskell-modules/patches/gogol-core-144.patch26
2 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/development/haskell-modules/configuration-common.nix b/pkgs/development/haskell-modules/configuration-common.nix
index 939c9952978..ad070ee70d9 100644
--- a/pkgs/development/haskell-modules/configuration-common.nix
+++ b/pkgs/development/haskell-modules/configuration-common.nix
@@ -2055,4 +2055,9 @@ EOT
   # https://github.com/recursion-schemes/recursion-schemes/issues/128
   recursion-schemes = appendPatch super.recursion-schemes ./patches/recursion-schemes-128.patch;
 
+  # Fix from https://github.com/brendanhay/gogol/pull/144 which has seen no release
+  # Can't use fetchpatch as it required tweaking the line endings as the .cabal
+  # file revision on hackage was gifted CRLF line endings
+  gogol-core = appendPatch super.gogol-core ./patches/gogol-core-144.patch;
+
 } // import ./configuration-tensorflow.nix {inherit pkgs haskellLib;} self super
diff --git a/pkgs/development/haskell-modules/patches/gogol-core-144.patch b/pkgs/development/haskell-modules/patches/gogol-core-144.patch
new file mode 100644
index 00000000000..4e1ae86c002
--- /dev/null
+++ b/pkgs/development/haskell-modules/patches/gogol-core-144.patch
@@ -0,0 +1,26 @@
+diff --git a/gogol-core.cabal b/gogol-core.cabal
+index 4c47988..caa4796 100644
+--- a/gogol-core.cabal
++++ b/gogol-core.cabal
+@@ -62,7 +62,7 @@ library
+         , lens                 >= 4.4

+         , resourcet            >= 1.1

+         , scientific           >= 0.3

+-        , servant              >= 0.4.4

++        , servant              >= 0.14.1

+         , text                 >= 1.1

+         , unordered-containers >= 0.2.5

+ 

+diff --git a/src/Network/Google/Prelude.hs b/src/Network/Google/Prelude.hs
+index a4ad9de..795c690 100644
+--- a/src/Network/Google/Prelude.hs
++++ b/src/Network/Google/Prelude.hs
+@@ -28,7 +28,7 @@ import Network.HTTP.Client as Export (RequestBody)
+ import Numeric.Natural     as Export (Natural)
+ import Prelude             as Export hiding (product, span, any, Word)
+ import Servant.API         as Export hiding (Headers, Link, getResponse, Stream, ResponseHeader, Header, header)
+-import Servant.Utils.Links as Export hiding (Link)
++import Servant.Links       as Export hiding (Link)
+ import Web.HttpApiData     as Export (FromHttpApiData (..), ToHttpApiData (..))
+ 
+ import Network.Google.Data.Bytes   as Export