From 4c89934ed125659796dacb46eba254c3fcdcffeb Mon Sep 17 00:00:00 2001
From: Daniel Firth <dan.firth@homotopic.tech>
Date: Mon, 24 Oct 2022 17:15:39 +0100
Subject: [PATCH] hpack-dhall: init at 0.5.7

---
 manifest.dhall       |  1 +
 overlay.nix          |  2 ++
 pkgs/hpack-dhall.nix | 33 +++++++++++++++++++++++++++++++++
 3 files changed, 36 insertions(+)
 create mode 100644 pkgs/hpack-dhall.nix

diff --git a/manifest.dhall b/manifest.dhall
index 8bae29e9..fa58474c 100644
--- a/manifest.dhall
+++ b/manifest.dhall
@@ -247,6 +247,7 @@ in  [ callHackage "Cabal" "3.8.1.0"
         (Some "005568ee024eabee129d9cf4ca331c6da260610b")
         (None Text)
     , callHackage "hpack" "0.35.0"
+    , callHackage "hpack-dhall" "0.5.7"
     , callCabal2nix
         "horizon-gen-nix"
         "https://gitlab.homotopic.tech/horizon/horizon-gen-nix"
diff --git a/overlay.nix b/overlay.nix
index dad65ed5..23f55804 100644
--- a/overlay.nix
+++ b/overlay.nix
@@ -275,6 +275,8 @@ final: prev: with pkgs.haskell.lib; {
 
     hpack = prev.callPackage (./pkgs/hpack.nix) { };
 
+    hpack-dhall = prev.callPackage (./pkgs/hpack-dhall.nix) { };
+
     hslua-aeson = prev.callPackage (./pkgs/hslua-aeson.nix) { };
 
     hspec = prev.callPackage (./pkgs/hspec.nix) { };
diff --git a/pkgs/hpack-dhall.nix b/pkgs/hpack-dhall.nix
new file mode 100644
index 00000000..254f3f66
--- /dev/null
+++ b/pkgs/hpack-dhall.nix
@@ -0,0 +1,33 @@
+{ mkDerivation, aeson, aeson-pretty, base, bytestring, Cabal, dhall
+, dhall-json, Diff, directory, filepath, hpack, lib, megaparsec
+, microlens, optparse-applicative, prettyprinter, tasty
+, tasty-golden, text, transformers, utf8-string, yaml
+}:
+mkDerivation {
+  pname = "hpack-dhall";
+  version = "0.5.7";
+  sha256 = "798053584b64213fdb724b79368f71094ef5912af1cf46efe991501bd51d98c3";
+  isLibrary = true;
+  isExecutable = true;
+  libraryHaskellDepends = [
+    aeson aeson-pretty base bytestring dhall dhall-json filepath hpack
+    megaparsec microlens prettyprinter text transformers yaml
+  ];
+  executableHaskellDepends = [
+    aeson aeson-pretty base bytestring dhall dhall-json filepath hpack
+    megaparsec microlens optparse-applicative prettyprinter text
+    transformers yaml
+  ];
+  testHaskellDepends = [
+    aeson aeson-pretty base bytestring Cabal dhall dhall-json Diff
+    directory filepath hpack megaparsec microlens prettyprinter tasty
+    tasty-golden text transformers utf8-string yaml
+  ];
+  doHaddock = false;
+  jailbreak = true;
+  doCheck = false;
+  hyperlinkSource = false;
+  homepage = "https://github.com/cabalism/hpack-dhall#readme";
+  description = "hpack's dhalling";
+  license = lib.licenses.bsd3;
+}
\ No newline at end of file
-- 
GitLab