From ad3f1d31aa8a92d3f68b7617b22bfbdf15ccac6e Mon Sep 17 00:00:00 2001
From: Daniel Firth <dan.firth@homotopic.tech>
Date: Wed, 30 Nov 2022 12:03:58 +0000
Subject: [PATCH] safe-coloured-text-layout: init at 0.0.0.0

---
 horizon.dhall                      |  1 +
 initial-packages.nix               |  2 ++
 pkgs/safe-coloured-text-layout.nix | 38 ++++++++++++++++++++++++++++++
 3 files changed, 41 insertions(+)
 create mode 100644 pkgs/safe-coloured-text-layout.nix

diff --git a/horizon.dhall b/horizon.dhall
index 5de4385d..421c8b9d 100644
--- a/horizon.dhall
+++ b/horizon.dhall
@@ -652,6 +652,7 @@ in  { compiler = "ghc-9.4.2"
       , H.callHackage "resourcet" "1.3.0"
       , H.callHackage "retry" "0.9.3.0"
       , H.callHackage "rope-utf16-splay" "0.4.0.0"
+      , H.callHackage "safe-coloured-text-layout" "0.0.0.0"
       , H.callHackage "safe-coloured-text-terminfo" "0.1.0.0"
       , H.callHackage "safe-coloured-text" "0.2.0.1"
       , H.callHackage "safe-exceptions" "0.1.7.3"
diff --git a/initial-packages.nix b/initial-packages.nix
index c9afd8da..26191629 100644
--- a/initial-packages.nix
+++ b/initial-packages.nix
@@ -1069,6 +1069,8 @@ self: with pkgs.haskell.lib; {
 
   safe-coloured-text = self.callPackage (./pkgs/safe-coloured-text.nix) { };
 
+  safe-coloured-text-layout = self.callPackage (./pkgs/safe-coloured-text-layout.nix) { };
+
   safe-coloured-text-terminfo = self.callPackage (./pkgs/safe-coloured-text-terminfo.nix) { };
 
   safe-exceptions = self.callPackage (./pkgs/safe-exceptions.nix) { };
diff --git a/pkgs/safe-coloured-text-layout.nix b/pkgs/safe-coloured-text-layout.nix
new file mode 100644
index 00000000..f099d484
--- /dev/null
+++ b/pkgs/safe-coloured-text-layout.nix
@@ -0,0 +1,38 @@
+{ mkDerivation
+, base
+, bytestring
+, lib
+, safe-coloured-text
+, sydtest
+, sydtest-discover
+, text
+, validity
+}:
+mkDerivation {
+  pname = "safe-coloured-text-layout";
+  version = "0.0.0.0";
+  sha256 = "7c19de565f93b9c183698dd238b66e0e68ae9d5827f93ab9f79036933476cb85";
+  isLibrary = true;
+  isExecutable = false;
+  enableSeparateDataOutput = false;
+  libraryHaskellDepends = [ base safe-coloured-text text validity ];
+  testHaskellDepends = [
+    base
+    bytestring
+    safe-coloured-text
+    sydtest
+    text
+  ];
+  testToolDepends = [ sydtest-discover ];
+  enableLibraryProfiling = true;
+  enableExecutableProfiling = true;
+  doHaddock = false;
+  jailbreak = true;
+  doCheck = false;
+  doBenchmark = false;
+  hyperlinkSource = false;
+  homepage = "https://github.com/NorfairKing/safe-coloured-text#readme";
+  description = "Safely layout output coloured text";
+  license = lib.licenses.mit;
+  broken = false;
+}
-- 
GitLab