2013-11-21 16:27:39 +01:00
|
|
|
{ cabal, caseInsensitive, conduit, deepseq, httpdShed, httpTypes
|
|
|
|
, HUnit, mtl, network, parsec, pureMD5, split, testFramework
|
|
|
|
, testFrameworkHunit, wai, warp
|
|
|
|
}:
|
|
|
|
|
|
|
|
cabal.mkDerivation (self: {
|
|
|
|
pname = "HTTP";
|
2014-05-02 03:42:56 +02:00
|
|
|
version = "4000.2.13";
|
|
|
|
sha256 = "1lff45nad6j2bc6waav1z95na0bif2figxiw86g2w741p7idxyy4";
|
2013-11-21 16:27:39 +01:00
|
|
|
buildDepends = [ mtl network parsec ];
|
|
|
|
testDepends = [
|
|
|
|
caseInsensitive conduit deepseq httpdShed httpTypes HUnit mtl
|
|
|
|
network pureMD5 split testFramework testFrameworkHunit wai warp
|
|
|
|
];
|
2014-05-04 12:40:01 +02:00
|
|
|
jailbreak = true;
|
2014-05-04 12:40:58 +02:00
|
|
|
doCheck = false;
|
2014-05-04 13:37:15 +02:00
|
|
|
preConfigure = self.stdenv.lib.optional (self.stdenv.lib.versionOlder "7.9" self.ghc.version) ''
|
|
|
|
sed -i -e 's|Extensions: |Extensions: FlexibleContexts, |' HTTP.cabal
|
|
|
|
'';
|
2013-11-21 16:27:39 +01:00
|
|
|
meta = {
|
|
|
|
homepage = "https://github.com/haskell/HTTP";
|
|
|
|
description = "A library for client-side HTTP";
|
|
|
|
license = self.stdenv.lib.licenses.bsd3;
|
|
|
|
platforms = self.ghc.meta.platforms;
|
|
|
|
maintainers = [ self.stdenv.lib.maintainers.andres ];
|
|
|
|
};
|
|
|
|
})
|