From eec8afa739d3c26783440ce6d02d57623e62ce1f Mon Sep 17 00:00:00 2001
From: Daniel Firth <dan.firth@homotopic.tech>
Date: Sun, 6 Nov 2022 21:35:24 +0000
Subject: [PATCH] edit-distance: init at 0.2.2.1

---
 manifest.dhall         |  1 +
 overlay.nix            |  2 ++
 pkgs/edit-distance.nix | 57 ++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 60 insertions(+)
 create mode 100644 pkgs/edit-distance.nix

diff --git a/manifest.dhall b/manifest.dhall
index 20a4d2cd..2b881eee 100644
--- a/manifest.dhall
+++ b/manifest.dhall
@@ -219,6 +219,7 @@ in  [ callHackage "Cabal" "3.8.1.0"
         "https://gitlab.homotopic.tech/horizon/adopted/ed25519"
         (None Text)
         (None Text)
+    , callHackage "edit-distance" "0.2.2.1"
     , callHackage "either" "5.0.2"
     , callHackage "email-validate" "2.3.2.16"
     , callCabal2nix
diff --git a/overlay.nix b/overlay.nix
index 0ac2a09b..0d0a6f4d 100644
--- a/overlay.nix
+++ b/overlay.nix
@@ -249,6 +249,8 @@ self: with pkgs.haskell.lib; {
 
   ed25519 = self.callPackage (./pkgs/ed25519.nix) { };
 
+  edit-distance = self.callPackage (./pkgs/edit-distance.nix) { };
+
   effectful = self.callPackage (./pkgs/effectful.nix) { };
 
   effectful-cache = self.callPackage (./pkgs/effectful-cache.nix) { };
diff --git a/pkgs/edit-distance.nix b/pkgs/edit-distance.nix
new file mode 100644
index 00000000..bb7a44b7
--- /dev/null
+++ b/pkgs/edit-distance.nix
@@ -0,0 +1,57 @@
+{ mkDerivation
+, array
+, base
+, containers
+, criterion
+, deepseq
+, lib
+, process
+, QuickCheck
+, random
+, test-framework
+, test-framework-quickcheck2
+, time
+, unix
+}:
+mkDerivation {
+  pname = "edit-distance";
+  version = "0.2.2.1";
+  sha256 = "3e8885ee2f56ad4da940f043ae8f981ee2fe336b5e8e4ba3f7436cff4f526c4a";
+  revision = "1";
+  editedCabalFile = "1vjn4ryzdilz7l1ad7czh11nw48h5mj8if7ij3q0mmc3sffa8csd";
+  isLibrary = true;
+  isExecutable = false;
+  enableSeparateDataOutput = false;
+  libraryHaskellDepends = [ array base containers random ];
+  testHaskellDepends = [
+    array
+    base
+    containers
+    QuickCheck
+    random
+    test-framework
+    test-framework-quickcheck2
+  ];
+  benchmarkHaskellDepends = [
+    array
+    base
+    containers
+    criterion
+    deepseq
+    process
+    random
+    time
+    unix
+  ];
+  enableLibraryProfiling = false;
+  enableExecutableProfiling = false;
+  doHaddock = false;
+  jailbreak = true;
+  doCheck = false;
+  doBenchmark = false;
+  hyperlinkSource = false;
+  homepage = "http://github.com/phadej/edit-distance";
+  description = "Levenshtein and restricted Damerau-Levenshtein edit distances";
+  license = lib.licenses.bsd3;
+  broken = false;
+}
-- 
GitLab