From e227c8f2b1384e39e864e15b39bd1eeb0f8b1889 Mon Sep 17 00:00:00 2001
From: Daniel Firth <dan.firth@homotopic.tech>
Date: Sat, 5 Nov 2022 09:51:34 +0000
Subject: [PATCH] commonmark-extensions: init at 0.2.3.3

---
 manifest.dhall                 |  1 +
 overlay.nix                    |  2 ++
 pkgs/commonmark-extensions.nix | 54 ++++++++++++++++++++++++++++++++++
 3 files changed, 57 insertions(+)
 create mode 100644 pkgs/commonmark-extensions.nix

diff --git a/manifest.dhall b/manifest.dhall
index 9467d3c1..e5b6a521 100644
--- a/manifest.dhall
+++ b/manifest.dhall
@@ -120,6 +120,7 @@ in  [ callHackage "Cabal" "3.8.1.0"
     , callHackage "citeproc" "0.8.0.1"
     , callHackage "co-log-core" "0.3.1.0"
     , callHackage "co-log-polysemy" "0.0.1.3"
+    , callHackage "commonmark-extensions" "0.2.3.3"
     , callHackage "commonmark" "0.2.2"
     , callHackage "comonad" "5.0.8"
     , callHackage "compact" "0.2.0.0"
diff --git a/overlay.nix b/overlay.nix
index 21f442af..61bb58db 100644
--- a/overlay.nix
+++ b/overlay.nix
@@ -117,6 +117,8 @@ final: prev: with pkgs.haskell.lib; {
 
   commonmark = prev.callPackage (./pkgs/commonmark.nix) { };
 
+  commonmark-extensions = prev.callPackage (./pkgs/commonmark-extensions.nix) { };
+
   comonad = prev.callPackage (./pkgs/comonad.nix) { };
 
   compact = prev.callPackage (./pkgs/compact.nix) { };
diff --git a/pkgs/commonmark-extensions.nix b/pkgs/commonmark-extensions.nix
new file mode 100644
index 00000000..7e085b79
--- /dev/null
+++ b/pkgs/commonmark-extensions.nix
@@ -0,0 +1,54 @@
+{ mkDerivation
+, base
+, commonmark
+, containers
+, emojis
+, filepath
+, lib
+, network-uri
+, parsec
+, tasty
+, tasty-bench
+, tasty-hunit
+, text
+, transformers
+}:
+mkDerivation {
+  pname = "commonmark-extensions";
+  version = "0.2.3.3";
+  sha256 = "f41efcf3cc0b876437de8dc69accf8cab9674b77325a6bf038caf62e96ce3e01";
+  isLibrary = true;
+  isExecutable = false;
+  enableSeparateDataOutput = false;
+  libraryHaskellDepends = [
+    base
+    commonmark
+    containers
+    emojis
+    filepath
+    network-uri
+    parsec
+    text
+    transformers
+  ];
+  testHaskellDepends = [
+    base
+    commonmark
+    parsec
+    tasty
+    tasty-hunit
+    text
+  ];
+  benchmarkHaskellDepends = [ base commonmark tasty-bench text ];
+  enableLibraryProfiling = false;
+  enableExecutableProfiling = false;
+  doHaddock = false;
+  jailbreak = true;
+  doCheck = false;
+  doBenchmark = false;
+  hyperlinkSource = false;
+  homepage = "https://github.com/jgm/commonmark-hs";
+  description = "Pure Haskell commonmark parser";
+  license = lib.licenses.bsd3;
+  broken = false;
+}
-- 
GitLab