From fd08da111666b5e4a16add1ea1caaf2160f10a14 Mon Sep 17 00:00:00 2001
From: vi <me@vikramverma.com>
Date: Mon, 16 Jun 2014 13:32:24 +0800
Subject: [PATCH] New derivation: hxt-tagsoup #haskell

---
 .../libraries/haskell/hxt-tagsoup/default.nix      | 14 ++++++++++++++
 pkgs/top-level/haskell-packages.nix                |  2 ++
 2 files changed, 16 insertions(+)
 create mode 100644 pkgs/development/libraries/haskell/hxt-tagsoup/default.nix

diff --git a/pkgs/development/libraries/haskell/hxt-tagsoup/default.nix b/pkgs/development/libraries/haskell/hxt-tagsoup/default.nix
new file mode 100644
index 00000000000..431e6e85c13
--- /dev/null
+++ b/pkgs/development/libraries/haskell/hxt-tagsoup/default.nix
@@ -0,0 +1,14 @@
+{ cabal, hxt, hxtCharproperties, hxtUnicode, tagsoup }:
+
+cabal.mkDerivation (self: {
+  pname = "hxt-tagsoup";
+  version = "9.1.3";
+  sha256 = "1rp499j6w3h9xfxqyw2fn05ffq3z0wg1r9h2c205m37mb8visq77";
+  buildDepends = [ hxt hxtCharproperties hxtUnicode tagsoup ];
+  meta = {
+    homepage = "http://www.fh-wedel.de/~si/HXmlToolbox/index.html";
+    description = "TagSoup parser for HXT";
+    license = "unknown";
+    platforms = self.ghc.meta.platforms;
+  };
+})
diff --git a/pkgs/top-level/haskell-packages.nix b/pkgs/top-level/haskell-packages.nix
index 8fa8ab0060d..bf9e2cc53cf 100644
--- a/pkgs/top-level/haskell-packages.nix
+++ b/pkgs/top-level/haskell-packages.nix
@@ -1210,6 +1210,8 @@ self : let callPackage = x : y : modifyPrio (newScope self x y); in
 
   hxtRegexXmlschema = callPackage ../development/libraries/haskell/hxt-regex-xmlschema {};
 
+  hxtTagsoup = callPackage ../development/libraries/haskell/hxt-tagsoup {};
+
   hxtUnicode = callPackage ../development/libraries/haskell/hxt-unicode {};
 
   hxtXpath = callPackage ../development/libraries/haskell/hxt-xpath {};