summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul van der Walt <paul@denknerd.org>2015-10-15 16:41:58 +0200
committerPaul van der Walt <paul@denknerd.org>2015-10-23 09:10:52 +0200
commitd6a08d24bfd4eb94d761b23d2f57810100f7abb3 (patch)
tree80994559c534924aa326b69c9f54aa899de4e86b
parentf550db48ebea7d0ce494641ebaf7d33ccd3f40ec (diff)
gnu: Add ghc-xss-sanitize.
* gnu/packages/haskell.scm (ghc-xss-sanitize): New variable.
-rw-r--r--gnu/packages/haskell.scm32
1 files changed, 32 insertions, 0 deletions
diff --git a/gnu/packages/haskell.scm b/gnu/packages/haskell.scm
index 09ab4aa3498..19fc409943a 100644
--- a/gnu/packages/haskell.scm
+++ b/gnu/packages/haskell.scm
@@ -554,6 +554,38 @@ unwanted suggestions, and to add your own custom suggestions.")
554code where you can safely allocate resources.") 554code where you can safely allocate resources.")
555 (license bsd-3))) 555 (license bsd-3)))
556 556
557(define-public ghc-xss-sanitize
558 (package
559 (name "ghc-xss-sanitize")
560 (version "0.3.5.6")
561 (source
562 (origin
563 (method url-fetch)
564 (uri (string-append
565 "http://hackage.haskell.org/package/xss-sanitize/xss-sanitize-"
566 version
567 ".tar.gz"))
568 (sha256
569 (base32
570 "1j2qrn2dbfx01m7zyk9ilgnp9zjwq9mk62b0rdal4zkg4vh212h0"))))
571 (build-system haskell-build-system)
572 (propagated-inputs
573 `(("ghc-tagsoup" ,ghc-tagsoup)
574 ("ghc-utf8-string" ,ghc-utf8-string)
575 ("ghc-css-text" ,ghc-css-text)
576 ("ghc-network-uri" ,ghc-network-uri)))
577 (inputs
578 `(("ghc-text" ,ghc-text)
579 ("ghc-attoparsec" ,ghc-attoparsec)
580 ("ghc-hspec" ,ghc-hspec)
581 ("ghc-hunit" ,ghc-hunit)))
582 (home-page "http://github.com/yesodweb/haskell-xss-sanitize")
583 (synopsis "Sanitize untrusted HTML to prevent XSS attacks")
584 (description "This library provides @code{sanitizeXSS}. Run untrusted
585HTML through @code{Text.HTML.SanitizeXSS.sanitizeXSS} to prevent XSS
586attacks.")
587 (license bsd-3)))
588
557(define-public ghc-streaming-commons 589(define-public ghc-streaming-commons
558 (package 590 (package
559 (name "ghc-streaming-commons") 591 (name "ghc-streaming-commons")