From 0292a434561076531007db8505c83e3425ef70a5 Mon Sep 17 00:00:00 2001 From: John Soo Date: Fri, 16 Aug 2019 07:18:30 -0700 Subject: [PATCH 1/2] gnu: Add ghc-file-embed. * gnu/packages/haskell-xyz (ghc-file-embed): new variable. --- gnu/packages/haskell-xyz.scm | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/gnu/packages/haskell-xyz.scm b/gnu/packages/haskell-xyz.scm index 90b85d8f43..55afb22ebe 100644 --- a/gnu/packages/haskell-xyz.scm +++ b/gnu/packages/haskell-xyz.scm @@ -11729,3 +11729,26 @@ provides access to the full zlib feature set.") (description "This package provides low-level bindings to the @code{zlib} package.") (license license:bsd-3))) + +(define-public ghc-file-embed + (package + (name "ghc-file-embed") + (version "0.0.10.1") + (source + (origin + (method url-fetch) + (uri + (string-append + "mirror://hackage/package/file-embed/file-embed-" version ".tar.gz")) + (sha256 + (base32 + "0lj164cnzqyd487mli91nnr7137a4h4qsasfwsnsh77sx12fpk9k")))) + (build-system haskell-build-system) + (home-page "https://github.com/snoyberg/file-embed") + (synopsis "Use Template Haskell to embed file contents directly") + (description + "Use Template Haskell to read a file or all the files in a directory, +and turn them into @code{(path, bytestring)} pairs embedded in your Haskell +code.") + (license license:bsd-3))) + -- 2.22.0