From 9087d03190418090f2374323650470d8299fef09 Mon Sep 17 00:00:00 2001
From: Shea Levy <shea@shealevy.com>
Date: Tue, 15 Jul 2014 20:41:58 -0400
Subject: [PATCH] Add haskell-simple-conduit

---
 .../haskell/simple-conduit/default.nix        | 24 +++++++++++++++++++
 pkgs/top-level/haskell-packages.nix           |  2 ++
 2 files changed, 26 insertions(+)
 create mode 100644 pkgs/development/libraries/haskell/simple-conduit/default.nix

diff --git a/pkgs/development/libraries/haskell/simple-conduit/default.nix b/pkgs/development/libraries/haskell/simple-conduit/default.nix
new file mode 100644
index 000000000000..8f5574e4701d
--- /dev/null
+++ b/pkgs/development/libraries/haskell/simple-conduit/default.nix
@@ -0,0 +1,24 @@
+{ cabal, bifunctors, chunkedData, either, exceptions, filepath
+, foldl, liftedAsync, liftedBase, mmorph, monadControl
+, monoTraversable, mtl, mwcRandom, primitive, semigroups, stm
+, streamingCommons, text, transformers, transformersBase, vector
+, void
+}:
+
+cabal.mkDerivation (self: {
+  pname = "simple-conduit";
+  version = "0.4.0";
+  sha256 = "0r9l0ms396gxkxgj1q33s0v8lim7rj77mhmf5k7wgf9mzydv1y6c";
+  buildDepends = [
+    bifunctors chunkedData either exceptions filepath foldl liftedAsync
+    liftedBase mmorph monadControl monoTraversable mtl mwcRandom
+    primitive semigroups stm streamingCommons text transformers
+    transformersBase vector void
+  ];
+  meta = {
+    homepage = "http://github.com/jwiegley/simple-conduit";
+    description = "A simple streaming library based on composing monadic folds";
+    license = self.stdenv.lib.licenses.bsd3;
+    platforms = self.ghc.meta.platforms;
+  };
+})
diff --git a/pkgs/top-level/haskell-packages.nix b/pkgs/top-level/haskell-packages.nix
index a0780e29b1b0..b7323fcdcfeb 100644
--- a/pkgs/top-level/haskell-packages.nix
+++ b/pkgs/top-level/haskell-packages.nix
@@ -2023,6 +2023,8 @@ self : let callPackage = x : y : modifyPrio (newScope self x y); in
   shelly_1_5_3_1 = callPackage ../development/libraries/haskell/shelly {};
   shelly = self.shelly_1_5_3_1;
 
+  simpleConduit = callPackage ../development/libraries/haskell/simple-conduit {};
+
   simpleReflect = callPackage ../development/libraries/haskell/simple-reflect {};
 
   simpleSendfile = callPackage ../development/libraries/haskell/simple-sendfile {};