From d813cfd55a900861f2c9df4313cfc80b4892339d Mon Sep 17 00:00:00 2001
From: Daniel Firth <dan.firth@homotopic.tech>
Date: Mon, 7 Nov 2022 11:42:20 +0000
Subject: [PATCH] polyparse: init at 1.13

---
 manifest.dhall     |  1 +
 overlay.nix        |  2 ++
 pkgs/polyparse.nix | 23 +++++++++++++++++++++++
 3 files changed, 26 insertions(+)
 create mode 100644 pkgs/polyparse.nix

diff --git a/manifest.dhall b/manifest.dhall
index 94215bd7..b51ca9d9 100644
--- a/manifest.dhall
+++ b/manifest.dhall
@@ -503,6 +503,7 @@ in  [ callHackage "Cabal" "3.8.1.0"
         (Some "45730b124c7c21f1dcfd85667fda1c19b8ec9723")
         (None Text)
     , callHackage "pointed" "5.0.4"
+    , callHackage "polyparse" "1.13"
     , callHackage "polysemy-extra" "0.2.1.0"
     , callHackage "polysemy-kvstore" "0.1.3.0"
     , callHackage "polysemy-methodology" "0.2.1.0"
diff --git a/overlay.nix b/overlay.nix
index d1edc4b3..e5048d00 100644
--- a/overlay.nix
+++ b/overlay.nix
@@ -739,6 +739,8 @@ self: with pkgs.haskell.lib; {
 
   pointed = self.callPackage (./pkgs/pointed.nix) { };
 
+  polyparse = self.callPackage (./pkgs/polyparse.nix) { };
+
   polysemy = self.callPackage (./pkgs/polysemy.nix) { };
 
   polysemy-extra = self.callPackage (./pkgs/polysemy-extra.nix) { };
diff --git a/pkgs/polyparse.nix b/pkgs/polyparse.nix
new file mode 100644
index 00000000..f5b65f29
--- /dev/null
+++ b/pkgs/polyparse.nix
@@ -0,0 +1,23 @@
+{ mkDerivation, base, bytestring, lib, text }:
+mkDerivation {
+  pname = "polyparse";
+  version = "1.13";
+  sha256 = "1c4c72980e1e5a4f07fea65ca08b2399581d2a6aa21eb1078f7ad286c279707b";
+  revision = "5";
+  editedCabalFile = "05qrn5pfdy45x1nkx7dvhnxs9j6d6cssws4kwn2sl3n9qmagr8mc";
+  isLibrary = true;
+  isExecutable = false;
+  enableSeparateDataOutput = false;
+  libraryHaskellDepends = [ base bytestring text ];
+  enableLibraryProfiling = false;
+  enableExecutableProfiling = false;
+  doHaddock = false;
+  jailbreak = true;
+  doCheck = false;
+  doBenchmark = false;
+  hyperlinkSource = false;
+  homepage = "http://code.haskell.org/~malcolm/polyparse/";
+  description = "A variety of alternative parser combinator libraries";
+  license = "LGPL";
+  broken = false;
+}
-- 
GitLab