From 3caa5fd45f6e9abe8ddce5eee8af4b3c71aeac51 Mon Sep 17 00:00:00 2001 From: Daniel Firth <dan.firth@homotopic.tech> Date: Sat, 5 Nov 2022 09:28:34 +0000 Subject: [PATCH] megaparsec: init at 9.2.2 --- manifest.dhall | 1 + overlay.nix | 2 ++ pkgs/megaparsec.nix | 55 +++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 58 insertions(+) create mode 100644 pkgs/megaparsec.nix diff --git a/manifest.dhall b/manifest.dhall index 5cd2842b..414c5593 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 f3b6c4af..112f3c08 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 00000000..70c1527f --- /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; +} -- GitLab