From d8bddf35281fc7b9efffeece0f6530b99bcf61bd Mon Sep 17 00:00:00 2001 From: sternenseemann Date: Sat, 13 Aug 2022 18:27:34 +0200 Subject: [PATCH] matterhorn: build with brick 0.70.1 --- .../haskell-modules/configuration-common.nix | 5 +++ .../configuration-hackage2nix/main.yaml | 3 ++ .../haskell-modules/hackage-packages.nix | 45 +++++++++++++++++++ 3 files changed, 53 insertions(+) diff --git a/pkgs/development/haskell-modules/configuration-common.nix b/pkgs/development/haskell-modules/configuration-common.nix index 0f2107f1cf2f..7e4efcd72ce4 100644 --- a/pkgs/development/haskell-modules/configuration-common.nix +++ b/pkgs/development/haskell-modules/configuration-common.nix @@ -237,6 +237,11 @@ self: super: { # base bound digit = doJailbreak super.digit; + # matterhorn-50200.17.0 won't work with brick >= 0.71 + matterhorn = doJailbreak (super.matterhorn.overrideScope (self: super: { + brick = self.brick_0_70_1; + })); + # 2020-06-05: HACK: does not pass own build suite - `dontCheck` # 2022-06-17: Use hnix-store 0.5 until hnix 0.17 hnix = generateOptparseApplicativeCompletion "hnix" (dontCheck ( diff --git a/pkgs/development/haskell-modules/configuration-hackage2nix/main.yaml b/pkgs/development/haskell-modules/configuration-hackage2nix/main.yaml index 3a04d39e5d47..dfd932a074b7 100644 --- a/pkgs/development/haskell-modules/configuration-hackage2nix/main.yaml +++ b/pkgs/development/haskell-modules/configuration-hackage2nix/main.yaml @@ -91,6 +91,8 @@ default-package-overrides: - reflex-dom-core < 0.7.0.2 # Downgrade hasql-dynamic-statements until hasql 1.6 is in Stackage - hasql-dynamic-statements < 0.3.1.2 + # Its dependency brick >= 1.0 is not yet in stackage + - brick-skylighting < 1.0 extra-packages: - Cabal == 2.2.* # required for jailbreak-cabal etc. @@ -146,6 +148,7 @@ extra-packages: - vty == 5.35.1 # 2022-07-08: needed for glirc-2.39.0.1 - weeder == 2.2.* # 2022-02-21: preserve for GHC 8.10.7 - weeder == 2.3.* # 2022-05-31: preserve for GHC 9.0.2 + - brick == 0.70.* # 2022-08-13: needed by matterhorn-50200.17.0 package-maintainers: abbradar: diff --git a/pkgs/development/haskell-modules/hackage-packages.nix b/pkgs/development/haskell-modules/hackage-packages.nix index d90aefcac56f..d657c44e4e81 100644 --- a/pkgs/development/haskell-modules/hackage-packages.nix +++ b/pkgs/development/haskell-modules/hackage-packages.nix @@ -48065,6 +48065,33 @@ self: { license = lib.licenses.bsd3; }) {}; + "brick_0_70_1" = callPackage + ({ mkDerivation, base, bytestring, config-ini, containers + , contravariant, data-clist, deepseq, directory, dlist, exceptions + , filepath, microlens, microlens-mtl, microlens-th, QuickCheck, stm + , template-haskell, text, text-zipper, transformers, unix, vector + , vty, word-wrap + }: + mkDerivation { + pname = "brick"; + version = "0.70.1"; + sha256 = "18i1i06ll6pklzaazcl2bzbi3w5zdn43l9wvkclhfcmddjy19lp4"; + isLibrary = true; + isExecutable = true; + libraryHaskellDepends = [ + base bytestring config-ini containers contravariant data-clist + deepseq directory dlist exceptions filepath microlens microlens-mtl + microlens-th stm template-haskell text text-zipper transformers + unix vector vty word-wrap + ]; + testHaskellDepends = [ + base containers microlens QuickCheck vector + ]; + description = "A declarative terminal user interface library"; + license = lib.licenses.bsd3; + hydraPlatforms = lib.platforms.none; + }) {}; + "brick_1_0" = callPackage ({ mkDerivation, base, bimap, bytestring, config-ini, containers , contravariant, data-clist, deepseq, directory, dlist, exceptions @@ -48132,6 +48159,23 @@ self: { }) {}; "brick-skylighting" = callPackage + ({ mkDerivation, base, brick, containers, skylighting-core, text + , vty + }: + mkDerivation { + pname = "brick-skylighting"; + version = "0.3"; + sha256 = "1wjl5ff9c7czg7azj2pi17b3kzbgb5rmwb4nkxdy86xn6d68adi1"; + isLibrary = true; + isExecutable = true; + libraryHaskellDepends = [ + base brick containers skylighting-core text vty + ]; + description = "Show syntax-highlighted text in your Brick UI"; + license = lib.licenses.bsd3; + }) {}; + + "brick-skylighting_1_0" = callPackage ({ mkDerivation, base, brick, containers, skylighting-core, text , vty }: @@ -48146,6 +48190,7 @@ self: { ]; description = "Show syntax-highlighted text in your Brick UI"; license = lib.licenses.bsd3; + hydraPlatforms = lib.platforms.none; }) {}; "bricks" = callPackage