From 6efad4efbb449383a9b735f138cb2ab2b8be7b22 Mon Sep 17 00:00:00 2001
From: Daniel Firth <dan.firth@homotopic.tech>
Date: Sat, 5 Nov 2022 12:26:44 +0000
Subject: [PATCH] tree-diff: init at 0.2.2

---
 manifest.dhall     |  1 +
 overlay.nix        |  2 +
 pkgs/tree-diff.nix | 95 ++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 98 insertions(+)
 create mode 100644 pkgs/tree-diff.nix

diff --git a/manifest.dhall b/manifest.dhall
index 757e906d..05110657 100644
--- a/manifest.dhall
+++ b/manifest.dhall
@@ -572,6 +572,7 @@ in  [ callHackage "Cabal" "3.8.1.0"
         (Some "e212239b685e1ecf7ee95dd1e944cc563351907f")
         (None Text)
     , callHackage "tls" "1.6.0"
+    , callHackage "tree-diff" "0.2.2"
     , callHackage "trifecta" "2.1.2"
     , callHackage "typed-process" "0.2.10.1"
     , callHackage "type-errors-pretty" "0.0.1.2"
diff --git a/overlay.nix b/overlay.nix
index c54339bd..29a7c769 100644
--- a/overlay.nix
+++ b/overlay.nix
@@ -767,6 +767,8 @@ final: prev: with pkgs.haskell.lib; {
 
   tls = prev.callPackage (./pkgs/tls.nix) { };
 
+  tree-diff = prev.callPackage (./pkgs/tree-diff.nix) { };
+
   trifecta = prev.callPackage (./pkgs/trifecta.nix) { };
 
   type-equality = prev.callPackage (./pkgs/type-equality.nix) { };
diff --git a/pkgs/tree-diff.nix b/pkgs/tree-diff.nix
new file mode 100644
index 00000000..e33d02ec
--- /dev/null
+++ b/pkgs/tree-diff.nix
@@ -0,0 +1,95 @@
+{ mkDerivation
+, aeson
+, ansi-terminal
+, ansi-wl-pprint
+, base
+, base-compat
+, bytestring
+, bytestring-builder
+, containers
+, criterion
+, deepseq
+, Diff
+, hashable
+, lib
+, parsec
+, parsers
+, pretty
+, primitive
+, QuickCheck
+, scientific
+, semialign
+, strict
+, tagged
+, tasty
+, tasty-golden
+, tasty-quickcheck
+, text
+, these
+, time
+, trifecta
+, unordered-containers
+, uuid-types
+, vector
+}:
+mkDerivation {
+  pname = "tree-diff";
+  version = "0.2.2";
+  sha256 = "008390239dd942095b487b4a59e54faf18d51db5a4462177f301b763c0d5743c";
+  isLibrary = true;
+  isExecutable = false;
+  enableSeparateDataOutput = false;
+  libraryHaskellDepends = [
+    aeson
+    ansi-terminal
+    ansi-wl-pprint
+    base
+    base-compat
+    bytestring
+    bytestring-builder
+    containers
+    deepseq
+    hashable
+    parsec
+    parsers
+    pretty
+    primitive
+    QuickCheck
+    scientific
+    semialign
+    strict
+    tagged
+    text
+    these
+    time
+    unordered-containers
+    uuid-types
+    vector
+  ];
+  testHaskellDepends = [
+    ansi-terminal
+    ansi-wl-pprint
+    base
+    base-compat
+    parsec
+    primitive
+    QuickCheck
+    tagged
+    tasty
+    tasty-golden
+    tasty-quickcheck
+    trifecta
+  ];
+  benchmarkHaskellDepends = [ base criterion deepseq Diff ];
+  enableLibraryProfiling = false;
+  enableExecutableProfiling = false;
+  doHaddock = false;
+  jailbreak = true;
+  doCheck = false;
+  doBenchmark = false;
+  hyperlinkSource = false;
+  homepage = "https://github.com/phadej/tree-diff";
+  description = "Diffing of (expression) trees";
+  license = lib.licenses.gpl2Plus;
+  broken = false;
+}
-- 
GitLab