From cb7788835b93c7df3ee08370f2b9dc5b80698194 Mon Sep 17 00:00:00 2001
From: Daniel Firth <dan.firth@homotopic.tech>
Date: Mon, 24 Oct 2022 17:12:41 +0100
Subject: [PATCH] dhall-json: init at 1.7.11

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

diff --git a/manifest.dhall b/manifest.dhall
index e67a79bc..8bae29e9 100644
--- a/manifest.dhall
+++ b/manifest.dhall
@@ -142,6 +142,7 @@ in  [ callHackage "Cabal" "3.8.1.0"
     , callHackage "data-fix" "0.3.2"
     , callHackage "dec" "0.0.5"
     , callHackage "dhall" "1.41.2"
+    , callHackage "dhall-json" "1.7.11"
     , callHackage "dimensional" "1.5"
     , callCabal2nix
         "dirforest"
diff --git a/overlay.nix b/overlay.nix
index 2264a760..dad65ed5 100644
--- a/overlay.nix
+++ b/overlay.nix
@@ -127,6 +127,8 @@ final: prev: with pkgs.haskell.lib; {
 
     dhall = prev.callPackage (./pkgs/dhall.nix) { };
 
+    dhall-json = prev.callPackage (./pkgs/dhall-json.nix) { };
+
     dimensional = prev.callPackage (./pkgs/dimensional.nix) { };
 
     dirforest = prev.callPackage (./pkgs/dirforest.nix) { };
diff --git a/pkgs/dhall-json.nix b/pkgs/dhall-json.nix
new file mode 100644
index 00000000..e31ed38e
--- /dev/null
+++ b/pkgs/dhall-json.nix
@@ -0,0 +1,33 @@
+{ mkDerivation, aeson, aeson-pretty, aeson-yaml, ansi-terminal
+, base, bytestring, containers, dhall, exceptions, filepath
+, lens-family-core, lib, optparse-applicative, prettyprinter
+, prettyprinter-ansi-terminal, scientific, tasty, tasty-hunit
+, tasty-silver, text, unordered-containers, vector
+}:
+mkDerivation {
+  pname = "dhall-json";
+  version = "1.7.11";
+  sha256 = "26c2acf33bfc597f4d2ac333a431180c9929d7a9b4ef7cf70c4bd45eba65ef28";
+  revision = "1";
+  editedCabalFile = "0m5sngc1j7jagn95qmjz7gpw2jgqnnafgr6nwd506q8z2jg2a3my";
+  isLibrary = true;
+  isExecutable = true;
+  libraryHaskellDepends = [
+    aeson aeson-pretty aeson-yaml base bytestring containers dhall
+    exceptions filepath lens-family-core optparse-applicative
+    prettyprinter scientific text unordered-containers vector
+  ];
+  executableHaskellDepends = [
+    aeson aeson-pretty ansi-terminal base bytestring dhall exceptions
+    optparse-applicative prettyprinter prettyprinter-ansi-terminal text
+  ];
+  testHaskellDepends = [
+    aeson base bytestring dhall tasty tasty-hunit tasty-silver text
+  ];
+  doHaddock = false;
+  jailbreak = true;
+  doCheck = false;
+  hyperlinkSource = false;
+  description = "Convert between Dhall and JSON or YAML";
+  license = lib.licenses.bsd3;
+}
\ No newline at end of file
-- 
GitLab