From 4063ea3551379290c13c391ffa3a526bee64dea2 Mon Sep 17 00:00:00 2001 From: John Soo Date: Sun, 26 Jan 2020 11:10:38 -0800 Subject: [PATCH 27/34] gnu: Add ghc-mustache. * gnu/packages/haskell-xyz.scm (ghc-mustache): New variable. --- gnu/packages/haskell-xyz.scm | 46 ++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/gnu/packages/haskell-xyz.scm b/gnu/packages/haskell-xyz.scm index c38d1ff60e..ce45a91779 100644 --- a/gnu/packages/haskell-xyz.scm +++ b/gnu/packages/haskell-xyz.scm @@ -8008,6 +8008,52 @@ implementation is pure Haskell, so it might be a bit slower than a C FFI binding.") (license license:bsd-3))) +(define-public ghc-mustache + (package + (name "ghc-mustache") + (version "2.3.0") + (source + (origin + (method url-fetch) + (uri (string-append + "https://hackage.haskell.org/package/mustache/mustache-" + version + ".tar.gz")) + (sha256 + (base32 + "1q3vadcvv2pxg6rpp92jq5zy784jxphdfpf6xn9y6wg9g3jn7201")))) + (build-system haskell-build-system) + (inputs + `(("ghc-aeson" ,ghc-aeson) + ("ghc-either" ,ghc-either) + ("ghc-unordered-containers" ,ghc-unordered-containers) + ("ghc-vector" ,ghc-vector) + ("ghc-scientific" ,ghc-scientific) + ("ghc-th-lift" ,ghc-th-lift) + ("ghc-yaml" ,ghc-yaml) + ("ghc-cmdargs" ,ghc-cmdargs))) + (native-inputs + `(("ghc-hspec" ,ghc-hspec) + ("ghc-base-unicode-symbols" ,ghc-base-unicode-symbols) + ("ghc-wreq" ,ghc-wreq) + ("ghc-zlib" ,ghc-zlib) + ("ghc-tar" ,ghc-tar) + ("ghc-lens" ,ghc-lens) + ("ghc-hspec" ,ghc-hspec) + ("ghc-temporary" ,ghc-temporary))) + (arguments + ;; Tests do network IO + `(#:tests? #f)) + (home-page + "https://github.com/JustusAdam/mustache") + (synopsis "Mustache template parser library") + (description + "Allows parsing and rendering template files with mustache markup. See +the mustache language reference http://mustache.github.io/mustache.5.html. + +Implements the mustache spec version 1.1.3.") + (license license:bsd-3))) + (define-public ghc-mwc-random (package (name "ghc-mwc-random") -- 2.25.0