diff --git a/manifest.dhall b/manifest.dhall index 8dba8d6dd90502b6bea71da5e96394e6fbfbfa82..cc099da10607b9b74bffab116884cced2e107333 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 1f704a08d45277fb31351d584729afd12e81ad14..1eee71b3bcb748d64df04c63ce7f8c0d332448b6 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 0000000000000000000000000000000000000000..0f90f62dee25bdb203a0db5b02b707ef01b00824 --- /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; +}