From 780f427c8bd46678eca086ffbbb9b7da39857db5 Mon Sep 17 00:00:00 2001 From: Daniel Firth <dan.firth@homotopic.tech> Date: Mon, 7 Nov 2022 11:20:39 +0000 Subject: [PATCH] parser-combinators: init at 1.3.0 --- manifest.dhall | 1 + overlay.nix | 2 ++ pkgs/parser-combinators.nix | 21 +++++++++++++++++++++ 3 files changed, 24 insertions(+) create mode 100644 pkgs/parser-combinators.nix diff --git a/manifest.dhall b/manifest.dhall index 597127da..acf304c9 100644 --- a/manifest.dhall +++ b/manifest.dhall @@ -458,6 +458,7 @@ in [ callHackage "Cabal" "3.8.1.0" , callHackage "optics" "0.4.2" , callHackage "optparse-applicative" "0.17.0.0" , callHackage "parsers" "0.12.11" + , callHackage "parser-combinators" "1.3.0" , callHackage "pandoc-lua-marshal" "0.1.7" , callHackage "pandoc-types" "1.22.2.1" , callHackage "pandoc" "2.19.2" diff --git a/overlay.nix b/overlay.nix index 1c4465d7..3a29dda3 100644 --- a/overlay.nix +++ b/overlay.nix @@ -663,6 +663,8 @@ self: with pkgs.haskell.lib; { parallel = self.callPackage (./pkgs/parallel.nix) { }; + parser-combinators = self.callPackage (./pkgs/parser-combinators.nix) { }; + parsers = self.callPackage (./pkgs/parsers.nix) { }; password = self.callPackage (./pkgs/password.nix) { }; diff --git a/pkgs/parser-combinators.nix b/pkgs/parser-combinators.nix new file mode 100644 index 00000000..d2b2f2db --- /dev/null +++ b/pkgs/parser-combinators.nix @@ -0,0 +1,21 @@ +{ mkDerivation, base, lib }: +mkDerivation { + pname = "parser-combinators"; + version = "1.3.0"; + sha256 = "9310ef0d49f8a8922acda10b1cded9854cbee04dea717effc6ee5983072e4447"; + isLibrary = true; + isExecutable = false; + enableSeparateDataOutput = false; + libraryHaskellDepends = [ base ]; + enableLibraryProfiling = false; + enableExecutableProfiling = false; + doHaddock = false; + jailbreak = true; + doCheck = false; + doBenchmark = false; + hyperlinkSource = false; + homepage = "https://github.com/mrkkrp/parser-combinators"; + description = "Lightweight package providing commonly useful parser combinators"; + license = lib.licenses.bsd3; + broken = false; +} -- GitLab