diff --git a/manifest.dhall b/manifest.dhall index 20a4d2cdafec78b539c1772100f3ba2a84679981..2b881eee48c70e8489ff1d03cd81e64301cf0b06 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 0ac2a09b12be807263ec3ce3c8c4cb429adc0e10..0d0a6f4d8765ad075a7c3ab3e6e4980eb6b29ccc 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 0000000000000000000000000000000000000000..bb7a44b79fa633a40ed3b541c1f59dd53f31d8dc --- /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; +}