From 70f424ee5e75028a114b95c4670bada955c682c8 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Mon, 29 Aug 2011 20:26:45 +0000 Subject: [PATCH] haskell-xss-sanitize: added version 0.3.0.1 svn path=/nixpkgs/trunk/; revision=28886 --- .../xss-sanitize/{default.nix => 0.2.6.nix} | 0 .../haskell/xss-sanitize/0.3.0.1.nix | 22 +++++++++++++++++++ pkgs/top-level/haskell-packages.nix | 8 +++++-- 3 files changed, 28 insertions(+), 2 deletions(-) rename pkgs/development/libraries/haskell/xss-sanitize/{default.nix => 0.2.6.nix} (100%) create mode 100644 pkgs/development/libraries/haskell/xss-sanitize/0.3.0.1.nix diff --git a/pkgs/development/libraries/haskell/xss-sanitize/default.nix b/pkgs/development/libraries/haskell/xss-sanitize/0.2.6.nix similarity index 100% rename from pkgs/development/libraries/haskell/xss-sanitize/default.nix rename to pkgs/development/libraries/haskell/xss-sanitize/0.2.6.nix diff --git a/pkgs/development/libraries/haskell/xss-sanitize/0.3.0.1.nix b/pkgs/development/libraries/haskell/xss-sanitize/0.3.0.1.nix new file mode 100644 index 000000000000..e13e0e50c90b --- /dev/null +++ b/pkgs/development/libraries/haskell/xss-sanitize/0.3.0.1.nix @@ -0,0 +1,22 @@ +{ cabal, attoparsecText, cssText, network, tagsoup, text +, utf8String +}: + +cabal.mkDerivation (self: { + pname = "xss-sanitize"; + version = "0.3.0.1"; + sha256 = "1rycdjl7b7bk100vgdwy6iighdqsbsyvrklp0zqbl1x45abph9pc"; + buildDepends = [ + attoparsecText cssText network tagsoup text utf8String + ]; + meta = { + homepage = "http://github.com/gregwebs/haskell-xss-sanitize"; + description = "sanitize untrusted HTML to prevent XSS attacks"; + license = self.stdenv.lib.licenses.bsd3; + platforms = self.ghc.meta.platforms; + maintainers = [ + self.stdenv.lib.maintainers.andres + self.stdenv.lib.maintainers.simons + ]; + }; +}) diff --git a/pkgs/top-level/haskell-packages.nix b/pkgs/top-level/haskell-packages.nix index e30f60aa82fd..f9bad22e6ca0 100644 --- a/pkgs/top-level/haskell-packages.nix +++ b/pkgs/top-level/haskell-packages.nix @@ -594,7 +594,9 @@ let result = let callPackage = x : y : modifyPrio (newScope result.final x y); ghcSybUtils = callPackage ../development/libraries/haskell/ghc-syb-utils {}; - gitit = callPackage ../development/libraries/haskell/gitit {}; + gitit = callPackage ../development/libraries/haskell/gitit { + xssSanitize = self.xssSanitize_0_2_6; + }; glade = callPackage ../development/libraries/haskell/glade { inherit (pkgs) pkgconfig glibc; @@ -1298,7 +1300,9 @@ let result = let callPackage = x : y : modifyPrio (newScope result.final x y); xmlTypes = callPackage ../development/libraries/haskell/xml-types {}; - xssSanitize = callPackage ../development/libraries/haskell/xss-sanitize {}; + xssSanitize_0_2_6 = callPackage ../development/libraries/haskell/xss-sanitize/0.2.6.nix {}; + xssSanitize_0_3_0_1 = callPackage ../development/libraries/haskell/xss-sanitize/0.3.0.1.nix {}; + xssSanitize = self.xssSanitize_0_3_0_1; yap = callPackage ../development/libraries/haskell/yap {};