diff --git a/.nix/brick.nix b/.nix/brick.nix index 6b4eef90..1aae0f4e 100644 --- a/.nix/brick.nix +++ b/.nix/brick.nix @@ -1,8 +1,8 @@ { mkDerivation, base, bimap, bytestring, config-ini, containers -, contravariant, data-clist, deepseq, directory, exceptions -, filepath, lib, microlens, microlens-mtl, microlens-th, mtl -, QuickCheck, stm, template-haskell, text, text-zipper, unix-compat -, vector, vty, word-wrap +, data-clist, deepseq, directory, exceptions, filepath, lib +, microlens, microlens-mtl, microlens-th, mtl, QuickCheck, stm +, template-haskell, text, text-zipper, unix-compat, vector, vty +, vty-crossplatform, vty-unix, word-wrap }: mkDerivation { pname = "brick"; @@ -10,14 +10,15 @@ mkDerivation { sha256 = "30280d6f7130eb3e6cbf5a55465a06a825169cb536d3b2e91883aec23532b31e"; isLibrary = true; isExecutable = true; + doCheck = false; libraryHaskellDepends = [ - base bimap bytestring config-ini containers contravariant - data-clist deepseq directory exceptions filepath microlens - microlens-mtl microlens-th mtl stm template-haskell text - text-zipper unix-compat vector vty word-wrap + base bimap bytestring config-ini containers data-clist deepseq + directory exceptions filepath microlens microlens-mtl microlens-th + mtl stm template-haskell text text-zipper unix-compat vector vty + vty-crossplatform word-wrap ]; testHaskellDepends = [ - base containers microlens QuickCheck vector vty + base containers microlens QuickCheck vector vty vty-unix ]; homepage = "https://github.com/jtdaugherty/brick/"; description = "A declarative terminal user interface library"; diff --git a/.nix/overlays.nix b/.nix/overlays.nix index 80ed58b5..642590b4 100644 --- a/.nix/overlays.nix +++ b/.nix/overlays.nix @@ -10,6 +10,8 @@ let text-zipper = hsuper.callPackage ./text-zipper.nix { }; bimap = hsuper.callPackage ./bimap.nix { }; vty = hsuper.callPackage ./vty.nix { }; + vty-unix = hsuper.callPackage ./vty-unix.nix { }; + vty-crossplatform = hsuper.callPackage ./vty-crossplatform.nix { }; notmuch = hsuper.callPackage ./hsnotmuch.nix { notmuch = self.pkgs.notmuch; talloc = self.pkgs.talloc; diff --git a/.nix/vty-crossplatform.nix b/.nix/vty-crossplatform.nix new file mode 100644 index 00000000..c9690cd3 --- /dev/null +++ b/.nix/vty-crossplatform.nix @@ -0,0 +1,11 @@ +{ mkDerivation, base, lib, vty, vty-unix }: +mkDerivation { + pname = "vty-crossplatform"; + version = "0.4.0.0"; + sha256 = "35e5433512b883e83aa8bb8c3475221174445a87e51f162b2ce07f9cf1eb3c1a"; + isLibrary = true; + isExecutable = true; + libraryHaskellDepends = [ base vty vty-unix ]; + description = "Cross-platform support for Vty"; + license = lib.licenses.bsd3; +} diff --git a/.nix/vty-unix.nix b/.nix/vty-unix.nix new file mode 100644 index 00000000..369d7149 --- /dev/null +++ b/.nix/vty-unix.nix @@ -0,0 +1,21 @@ +{ mkDerivation, ansi-terminal, base, blaze-builder, bytestring +, containers, deepseq, lib, microlens, microlens-mtl, microlens-th +, mtl, parsec, stm, terminfo, transformers, unix, utf8-string +, vector, vty +}: +mkDerivation { + pname = "vty-unix"; + version = "0.2.0.0"; + sha256 = "c2ab67e09edc4bade04e269adc059320e83f68b31e428d11a69b20c4f161ddc1"; + isLibrary = true; + isExecutable = true; + libraryHaskellDepends = [ + base blaze-builder bytestring containers deepseq microlens + microlens-mtl microlens-th mtl parsec stm terminfo transformers + unix utf8-string vector vty + ]; + executableHaskellDepends = [ ansi-terminal base vty ]; + description = "Unix backend for Vty"; + license = lib.licenses.bsd3; + mainProgram = "vty-unix-build-width-table"; +} diff --git a/.nix/vty.nix b/.nix/vty.nix index 68ecbc75..c37407bf 100644 --- a/.nix/vty.nix +++ b/.nix/vty.nix @@ -1,31 +1,16 @@ -{ mkDerivation, ansi-terminal, base, binary, blaze-builder -, bytestring, Cabal, containers, deepseq, directory, filepath -, hashable, HUnit, lib, microlens, microlens-mtl, microlens-th, mtl -, parallel, parsec, QuickCheck, quickcheck-assertions, random -, smallcheck, stm, string-qq, terminfo, test-framework -, test-framework-hunit, test-framework-smallcheck, text -, transformers, unix, utf8-string, vector +{ mkDerivation, base, binary, blaze-builder, bytestring, deepseq +, directory, filepath, lib, microlens, microlens-mtl, microlens-th +, mtl, parsec, stm, text, utf8-string, vector }: mkDerivation { pname = "vty"; version = "6.1"; sha256 = "2fc64b7d09f16bce9c6456e234e6aca3a86be9a40f360435499fc087b94f7bd6"; - isLibrary = true; - isExecutable = true; + revision = "1"; + editedCabalFile = "1wy4vfyr4nbb8ycfx80yrp59ggigcbfrsh5w1qk768y04d114kaj"; libraryHaskellDepends = [ - ansi-terminal base binary blaze-builder bytestring containers - deepseq directory filepath hashable microlens microlens-mtl - microlens-th mtl parallel parsec stm terminfo text transformers - unix utf8-string vector - ]; - executableHaskellDepends = [ - base containers directory filepath microlens microlens-mtl mtl - ]; - testHaskellDepends = [ - base blaze-builder bytestring Cabal containers deepseq HUnit - microlens microlens-mtl mtl QuickCheck quickcheck-assertions random - smallcheck stm string-qq terminfo test-framework - test-framework-hunit test-framework-smallcheck text unix + base binary blaze-builder bytestring deepseq directory filepath + microlens microlens-mtl microlens-th mtl parsec stm text utf8-string vector ]; homepage = "https://github.com/jtdaugherty/vty";