From cb8a8e6996b0da89fe7864eb04d8c0e8fd980a65 Mon Sep 17 00:00:00 2001
From: Daniel Firth <dan.firth@homotopic.tech>
Date: Mon, 7 Nov 2022 11:38:03 +0000
Subject: [PATCH] githash: init at 0.1.6.3

---
 manifest.dhall   |  1 +
 overlay.nix      |  2 ++
 pkgs/githash.nix | 53 ++++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 56 insertions(+)
 create mode 100644 pkgs/githash.nix

diff --git a/manifest.dhall b/manifest.dhall
index 8dba8d6d..cc099da1 100644
--- a/manifest.dhall
+++ b/manifest.dhall
@@ -312,6 +312,7 @@ in  [ callHackage "Cabal" "3.8.1.0"
     , callHackage "ghc-typelits-knownnat" "0.7.7"
     , callHackage "ghc-typelits-natnormalise" "0.7.7"
     , callHackage "ghcid" "0.8.8"
+    , callHackage "githash" "0.1.6.3"
     , callHackage "gitrev" "1.3.1"
     , callHackage "hackage-db" "2.1.2"
     , callHackage "hackage-security" "0.6.2.2"
diff --git a/overlay.nix b/overlay.nix
index 1f704a08..1eee71b3 100644
--- a/overlay.nix
+++ b/overlay.nix
@@ -429,6 +429,8 @@ self: with pkgs.haskell.lib; {
 
   ghcid = self.callPackage (./pkgs/ghcid.nix) { };
 
+  githash = self.callPackage (./pkgs/githash.nix) { };
+
   gitrev = self.callPackage (./pkgs/gitrev.nix) { };
 
   hackage-db = self.callPackage (./pkgs/hackage-db.nix) { };
diff --git a/pkgs/githash.nix b/pkgs/githash.nix
new file mode 100644
index 00000000..0f90f62d
--- /dev/null
+++ b/pkgs/githash.nix
@@ -0,0 +1,53 @@
+{ mkDerivation
+, base
+, bytestring
+, directory
+, filepath
+, hspec
+, lib
+, process
+, template-haskell
+, temporary
+, th-compat
+, unliftio
+}:
+mkDerivation {
+  pname = "githash";
+  version = "0.1.6.3";
+  sha256 = "fcba79b60ef87bdd4976332e998589a62e1be012b932b543b49de5e0620eef1b";
+  isLibrary = true;
+  isExecutable = false;
+  enableSeparateDataOutput = false;
+  libraryHaskellDepends = [
+    base
+    bytestring
+    directory
+    filepath
+    process
+    template-haskell
+    th-compat
+  ];
+  testHaskellDepends = [
+    base
+    bytestring
+    directory
+    filepath
+    hspec
+    process
+    template-haskell
+    temporary
+    th-compat
+    unliftio
+  ];
+  enableLibraryProfiling = false;
+  enableExecutableProfiling = false;
+  doHaddock = false;
+  jailbreak = true;
+  doCheck = false;
+  doBenchmark = false;
+  hyperlinkSource = false;
+  homepage = "https://github.com/snoyberg/githash#readme";
+  description = "Compile git revision info into Haskell projects";
+  license = lib.licenses.bsd3;
+  broken = false;
+}
-- 
GitLab