diff --git a/manifest.dhall b/manifest.dhall index 5cd2842b49d61e18bd141efa6c20435b6817aaeb..414c5593e97d7dc36a80a6a868d01043edc87852 100644 --- a/manifest.dhall +++ b/manifest.dhall @@ -342,6 +342,7 @@ in [ callHackage "Cabal" "3.8.1.0" , callHackage "lucid-svg" "0.7.1" , callHackage "lucid" "2.11.1" , callHackage "net-mqtt" "0.8.2.2" + , callHackage "megaparsec" "9.2.2" , callHackage "memory" "0.18.0" , callHackage "mockery" "0.3.5" , callHackage "microstache" "1.0.2.2" diff --git a/overlay.nix b/overlay.nix index f3b6c4af2fcdaa630f39b4d79f55d3aaed5ae0b2..112f3c08c5cde0cf6f3161ebdff0c06d76c5b781 100644 --- a/overlay.nix +++ b/overlay.nix @@ -413,6 +413,8 @@ final: prev: with pkgs.haskell.lib; { lucid-svg = prev.callPackage (./pkgs/lucid-svg.nix) { }; + megaparsec = prev.callPackage (./pkgs/megaparsec.nix) { }; + memory = prev.callPackage (./pkgs/memory.nix) { }; microstache = prev.callPackage (./pkgs/microstache.nix) { }; diff --git a/pkgs/megaparsec.nix b/pkgs/megaparsec.nix new file mode 100644 index 0000000000000000000000000000000000000000..70c1527fd7d514edda069075793767b52911e95e --- /dev/null +++ b/pkgs/megaparsec.nix @@ -0,0 +1,55 @@ +{ mkDerivation +, base +, bytestring +, case-insensitive +, containers +, criterion +, deepseq +, lib +, mtl +, parser-combinators +, scientific +, text +, transformers +, weigh +}: +mkDerivation { + pname = "megaparsec"; + version = "9.2.2"; + sha256 = "a48b03e55c0b9efcc88ce4236186fb6eee3acb64336987dd9c98daf4d96aa234"; + isLibrary = true; + isExecutable = false; + enableSeparateDataOutput = false; + libraryHaskellDepends = [ + base + bytestring + case-insensitive + containers + deepseq + mtl + parser-combinators + scientific + text + transformers + ]; + benchmarkHaskellDepends = [ + base + bytestring + containers + criterion + deepseq + text + weigh + ]; + enableLibraryProfiling = false; + enableExecutableProfiling = false; + doHaddock = false; + jailbreak = true; + doCheck = false; + doBenchmark = false; + hyperlinkSource = false; + homepage = "https://github.com/mrkkrp/megaparsec"; + description = "Monadic parser combinators"; + license = lib.licenses.bsd2; + broken = false; +}