diff --git a/pkgs/development/libraries/haskell/http-streams/default.nix b/pkgs/development/libraries/haskell/http-streams/default.nix new file mode 100644 index 00000000000..90c51e02bba --- /dev/null +++ b/pkgs/development/libraries/haskell/http-streams/default.nix @@ -0,0 +1,30 @@ +{ cabal, attoparsec, base64Bytestring, blazeBuilder +, caseInsensitive, HsOpenSSL, hspec, hspecExpectations, HUnit +, ioStreams, MonadCatchIOTransformers, mtl, network, opensslStreams +, snapCore, snapServer, systemFileio, systemFilepath, text +, transformers, unorderedContainers +}: + +cabal.mkDerivation (self: { + pname = "http-streams"; + version = "0.6.0.1"; + sha256 = "1q76zl3fjh2irxaxilirjj2a58mg3c49vvm30xms0cdil9339h7d"; + buildDepends = [ + attoparsec base64Bytestring blazeBuilder caseInsensitive HsOpenSSL + ioStreams mtl network opensslStreams text transformers + unorderedContainers + ]; + testDepends = [ + attoparsec base64Bytestring blazeBuilder caseInsensitive HsOpenSSL + hspec hspecExpectations HUnit ioStreams MonadCatchIOTransformers + mtl network opensslStreams snapCore snapServer systemFileio + systemFilepath text transformers unorderedContainers + ]; + meta = { + homepage = "http://research.operationaldynamics.com/projects/http-streams/"; + description = "An HTTP client using io-streams"; + license = self.stdenv.lib.licenses.bsd3; + platforms = self.ghc.meta.platforms; + }; + doCheck = false; +}) diff --git a/pkgs/development/libraries/haskell/openssl-streams/default.nix b/pkgs/development/libraries/haskell/openssl-streams/default.nix new file mode 100644 index 00000000000..dff29bb7e91 --- /dev/null +++ b/pkgs/development/libraries/haskell/openssl-streams/default.nix @@ -0,0 +1,19 @@ +{ cabal, HsOpenSSL, HUnit, ioStreams, network, testFramework +, testFrameworkHunit +}: + +cabal.mkDerivation (self: { + pname = "openssl-streams"; + version = "1.1.0.0"; + sha256 = "0xww3n1mhw0sp9nkx4847gqbq4wnfcnc2m782kn5n8jxnjnm1fqn"; + buildDepends = [ HsOpenSSL ioStreams network ]; + testDepends = [ + HsOpenSSL HUnit ioStreams network testFramework testFrameworkHunit + ]; + meta = { + description = "OpenSSL network support for io-streams"; + license = self.stdenv.lib.licenses.bsd3; + platforms = self.ghc.meta.platforms; + }; + doCheck = false; +}) diff --git a/pkgs/top-level/haskell-packages.nix b/pkgs/top-level/haskell-packages.nix index e56689924be..e8f2ac5020f 100644 --- a/pkgs/top-level/haskell-packages.nix +++ b/pkgs/top-level/haskell-packages.nix @@ -1378,6 +1378,8 @@ let result = let callPackage = x : y : modifyPrio (newScope result.finalReturn x httpDate = callPackage ../development/libraries/haskell/http-date {}; + httpStreams = callPackage ../development/libraries/haskell/http-streams {}; + httpTypes = callPackage ../development/libraries/haskell/http-types {}; HUnit_1_2_0_3 = callPackage ../development/libraries/haskell/HUnit/1.2.0.3.nix {}; @@ -1724,6 +1726,8 @@ let result = let callPackage = x : y : modifyPrio (newScope result.finalReturn x OpenGLRaw_1_4_0_0 = callPackage ../development/libraries/haskell/OpenGLRaw/1.4.0.0.nix {}; OpenGLRaw = self.OpenGLRaw_1_4_0_0; + opensslStreams = callPackage ../development/libraries/haskell/openssl-streams {}; + operational = callPackage ../development/libraries/haskell/operational {}; optparseApplicative = callPackage ../development/libraries/haskell/optparse-applicative {};