From a0e5a17890b4d72b1e6610f5994c24e0b4f4b6a0 Mon Sep 17 00:00:00 2001
From: Daniel Firth <dan.firth@homotopic.tech>
Date: Wed, 19 Oct 2022 21:46:41 +0100
Subject: [PATCH] cursor-dirforest-brick: init at
 6ad5b168e26eb4e647df9f007d812aaf59338d40

---
 manifest.dhall                  |  5 +++++
 overlay.nix                     |  2 ++
 pkgs/cursor-dirforest-brick.nix | 24 ++++++++++++++++++++++++
 3 files changed, 31 insertions(+)
 create mode 100644 pkgs/cursor-dirforest-brick.nix

diff --git a/manifest.dhall b/manifest.dhall
index 10689911..62f01833 100644
--- a/manifest.dhall
+++ b/manifest.dhall
@@ -124,6 +124,11 @@ in  [ callHackage "Cabal" "3.8.1.0"
         "https://github.com/NorfairKing/cursor-dirforest"
         (Some "6ad5b168e26eb4e647df9f007d812aaf59338d40")
         (Some "cursor-dirforest")
+    , callCabal2nix
+        "cursor-dirforest-brick"
+        "https://github.com/NorfairKing/cursor-dirforest"
+        (Some "6ad5b168e26eb4e647df9f007d812aaf59338d40")
+        (Some "cursor-dirforest-brick")
     , callHackage "cryptonite" "0.30"
     , callHackage "cryptohash-sha1" "0.11.101.0"
     , callHackage "data-fix" "0.3.2"
diff --git a/overlay.nix b/overlay.nix
index 1838dec9..11943f73 100644
--- a/overlay.nix
+++ b/overlay.nix
@@ -111,6 +111,8 @@ final: prev: with pkgs.haskell.lib; {
 
     cursor-dirforest = prev.callPackage (./pkgs/cursor-dirforest.nix) { };
 
+    cursor-dirforest-brick = prev.callPackage (./pkgs/cursor-dirforest-brick.nix) { };
+
     data-fix = prev.callPackage (./pkgs/data-fix.nix) { };
 
     dec = prev.callPackage (./pkgs/dec.nix) { };
diff --git a/pkgs/cursor-dirforest-brick.nix b/pkgs/cursor-dirforest-brick.nix
new file mode 100644
index 00000000..604db075
--- /dev/null
+++ b/pkgs/cursor-dirforest-brick.nix
@@ -0,0 +1,24 @@
+{ mkDerivation, base, brick, containers, cursor, cursor-brick
+, cursor-dirforest, dirforest, fetchgit, lib, vty
+}:
+mkDerivation {
+  pname = "cursor-dirforest-brick";
+  version = "0.0.0.0";
+  src = fetchgit {
+    url = "https://github.com/NorfairKing/cursor-dirforest";
+    sha256 = "0miy6chdyi8jjfivcpigyglhlx6x7f676n47vybjnpdhggv0kh2j";
+    rev = "6ad5b168e26eb4e647df9f007d812aaf59338d40";
+    fetchSubmodules = true;
+  };
+  postUnpack = "sourceRoot+=/cursor-dirforest-brick/; echo source root reset to $sourceRoot";
+  libraryHaskellDepends = [
+    base brick containers cursor cursor-brick cursor-dirforest
+    dirforest vty
+  ];
+  doHaddock = false;
+  jailbreak = true;
+  doCheck = false;
+  hyperlinkSource = false;
+  homepage = "https://github.com/NorfairKing/cursor-dirforest#readme";
+  license = lib.licenses.mit;
+}
\ No newline at end of file
-- 
GitLab