From 14cb7578955396f90f1b97521fd17d619fed90b0 Mon Sep 17 00:00:00 2001 From: Daniel Firth <dan.firth@homotopic.tech> Date: Sat, 5 Nov 2022 14:32:54 +0000 Subject: [PATCH] colourista: init at 0.1.0.1 --- manifest.dhall | 1 + overlay.nix | 2 ++ pkgs/colourista.nix | 36 ++++++++++++++++++++++++++++++++++++ 3 files changed, 39 insertions(+) create mode 100644 pkgs/colourista.nix diff --git a/manifest.dhall b/manifest.dhall index d7287398..01e5e6ec 100644 --- a/manifest.dhall +++ b/manifest.dhall @@ -127,6 +127,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 "colourista" "0.1.0.1" , callHackage "commonmark-extensions" "0.2.3.3" , callHackage "commonmark-pandoc" "0.2.1.2" , callHackage "commonmark" "0.2.2" diff --git a/overlay.nix b/overlay.nix index e808f0b1..2b710499 100644 --- a/overlay.nix +++ b/overlay.nix @@ -129,6 +129,8 @@ final: prev: with pkgs.haskell.lib; { co-log-polysemy = prev.callPackage (./pkgs/co-log-polysemy.nix) { }; + colourista = prev.callPackage (./pkgs/colourista.nix) { }; + commonmark = prev.callPackage (./pkgs/commonmark.nix) { }; commonmark-extensions = prev.callPackage (./pkgs/commonmark-extensions.nix) { }; diff --git a/pkgs/colourista.nix b/pkgs/colourista.nix new file mode 100644 index 00000000..b1bd2d4c --- /dev/null +++ b/pkgs/colourista.nix @@ -0,0 +1,36 @@ +{ mkDerivation +, ansi-terminal +, base +, bytestring +, ghc-prim +, hspec +, lib +, text +}: +mkDerivation { + pname = "colourista"; + version = "0.1.0.1"; + sha256 = "6ebd9a0ab5479ed0de649ad7326eb08279c1b71a0db72da4b2ca4f61bafa709a"; + isLibrary = true; + isExecutable = false; + enableSeparateDataOutput = false; + libraryHaskellDepends = [ + ansi-terminal + base + bytestring + ghc-prim + text + ]; + testHaskellDepends = [ base bytestring hspec text ]; + enableLibraryProfiling = false; + enableExecutableProfiling = false; + doHaddock = false; + jailbreak = true; + doCheck = false; + doBenchmark = false; + hyperlinkSource = false; + homepage = "https://github.com/kowainik/colourista"; + description = "Convenient interface for printing colourful messages"; + license = lib.licenses.mpl20; + broken = false; +} -- GitLab