[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#55005] [PATCH 04/13] gnu: Add ghc-githash
From: |
Thomas Albers |
Subject: |
[bug#55005] [PATCH 04/13] gnu: Add ghc-githash |
Date: |
Mon, 18 Apr 2022 20:09:48 +0200 |
---
gnu/packages/haskell-xyz.scm | 25 +++++++++++++++++++++++++
1 file changed, 25 insertions(+)
diff --git a/gnu/packages/haskell-xyz.scm b/gnu/packages/haskell-xyz.scm
index 18baf7b2f8..314209f573 100644
--- a/gnu/packages/haskell-xyz.scm
+++ b/gnu/packages/haskell-xyz.scm
@@ -16179,3 +16179,28 @@ (define-public ghc-sqlite-simple
(description
"Mid-level SQLite client library, based on postgresql-simple.")
(license license:bsd-3)))
+
+(define-public ghc-githash
+ (package
+ (name "ghc-githash")
+ (version "0.1.6.2")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append
+ "https://hackage.haskell.org/package/githash/githash-"
+ version
+ ".tar.gz"))
+ (sha256
+ (base32 "1vkwc7j71vdrxy01vlm6xfp16kam7m9bnj9y3h217fzhq5mjywhz"))))
+ (build-system haskell-build-system)
+ (outputs '("out" "static"))
+ (arguments `(#:tests? #f))
+ (inputs (list ghc-th-compat))
+ (native-inputs (list ghc-hspec ghc-temporary ghc-unliftio))
+ (home-page "https://github.com/snoyberg/githash")
+ (synopsis "Compile git revision info into Haskell projects")
+ (description
+ "Template Haskell splices for including the current git hash and branch
+in the code of a project.")
+ (license license:bsd-3)))
--
2.35.1
- [bug#55005] [PATCH 00/13] gnu: Add multiple haskell packages, Thomas Albers Raviola, 2022/04/18
- [bug#55005] [PATCH 13/13] gnu: Add ghc-mod, Thomas Albers, 2022/04/18
- [bug#55005] [PATCH 10/13] gnu: Add ghc-fuzzy, Thomas Albers, 2022/04/18
- [bug#55005] [PATCH 08/13] gnu: Add ghc-record-dot-preprocessor, Thomas Albers, 2022/04/18
- [bug#55005] [PATCH 06/13] gnu: Add ghc-algebraic-graphs, Thomas Albers, 2022/04/18
- [bug#55005] [PATCH 05/13] gnu: Add ghc-optparse-simple, Thomas Albers, 2022/04/18
- [bug#55005] [PATCH 09/13] gnu: Add ghc-monoid-subclasses, Thomas Albers, 2022/04/18