haskell-github: patch to fix build

This commit is contained in:
Peter Simons 2013-12-15 19:54:13 +01:00
parent 001776428e
commit be8d22c05d
2 changed files with 14 additions and 0 deletions

View File

@ -12,6 +12,7 @@ cabal.mkDerivation (self: {
hashable HTTP httpConduit httpTypes network text time
unorderedContainers vector
];
patches = [ ./fix-build.patch ];
jailbreak = true;
meta = {
homepage = "https://github.com/fpco/github";

View File

@ -0,0 +1,13 @@
diff -ubr github-0.7.2-orig/Github/Private.hs github-0.7.2/Github/Private.hs
--- github-0.7.2-orig/Github/Private.hs 2013-12-15 19:45:00.611789227 +0100
+++ github-0.7.2/Github/Private.hs 2013-12-15 19:45:46.359954006 +0100
@@ -104,9 +104,6 @@
in Just (Data.List.takeWhile (/= '>') s')
else Nothing
-doHttps :: Method -> String -> Maybe GithubAuth
- -> Maybe (RequestBody (ResourceT IO))
- -> IO (Either E.SomeException (Response LBS.ByteString))
doHttps reqMethod url auth body = do
let reqBody = fromMaybe (RequestBodyBS $ BS.pack "") body
reqHeaders = maybe [] getOAuth auth