From beca5db4fb56d6839fa28809dec0bee1c44367d5 Mon Sep 17 00:00:00 2001 From: Daniel Firth <dan.firth@homotopic.tech> Date: Sat, 5 Nov 2022 09:37:19 +0000 Subject: [PATCH] commonmark: init at 0.2.2 --- manifest.dhall | 1 + overlay.nix | 2 ++ pkgs/commonmark.nix | 54 +++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 57 insertions(+) create mode 100644 pkgs/commonmark.nix diff --git a/manifest.dhall b/manifest.dhall index 4bb125a3..cf6d04b0 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" "0.2.2" , callHackage "comonad" "5.0.8" , callHackage "compact" "0.2.0.0" , callCabal2nix diff --git a/overlay.nix b/overlay.nix index d7a447d2..9084538e 100644 --- a/overlay.nix +++ b/overlay.nix @@ -115,6 +115,8 @@ final: prev: with pkgs.haskell.lib; { co-log-polysemy = prev.callPackage (./pkgs/co-log-polysemy.nix) { }; + commonmark = prev.callPackage (./pkgs/commonmark.nix) { }; + comonad = prev.callPackage (./pkgs/comonad.nix) { }; compact = prev.callPackage (./pkgs/compact.nix) { }; diff --git a/pkgs/commonmark.nix b/pkgs/commonmark.nix new file mode 100644 index 00000000..28ddc47d --- /dev/null +++ b/pkgs/commonmark.nix @@ -0,0 +1,54 @@ +{ mkDerivation +, base +, bytestring +, containers +, lib +, parsec +, tasty +, tasty-bench +, tasty-hunit +, tasty-quickcheck +, text +, transformers +, unicode-data +, unicode-transforms +}: +mkDerivation { + pname = "commonmark"; + version = "0.2.2"; + sha256 = "b70b421f5753d983745e558d7d66a5e346ee5b2ebc0a827e9f63f8ff7a62b24e"; + isLibrary = true; + isExecutable = false; + enableSeparateDataOutput = false; + libraryHaskellDepends = [ + base + bytestring + containers + parsec + text + transformers + unicode-data + unicode-transforms + ]; + testHaskellDepends = [ + base + parsec + tasty + tasty-hunit + tasty-quickcheck + text + unicode-transforms + ]; + benchmarkHaskellDepends = [ base 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