about summary refs log tree commit diff
path: root/third_party/overlays/haskell
diff options
context:
space:
mode:
authorsterni <sternenseemann@systemli.org>2022-04-26T13·32+0200
committersterni <sternenseemann@systemli.org>2022-04-26T19·16+0000
commit574d33a2ded4fc36fd0b63fa70e44d9ab378da47 (patch)
tree6337ca959203f9ad6bd694708558b2d8b5196181 /third_party/overlays/haskell
parent96aea320846d3d0d61e9e00d85f58a3efe3f9f82 (diff)
chore(3p/sources): Bump channels & overlays r/3992
* //3p/farmhash: drop, as it is unused and started to fail

* //3p/overlays/tvl:

  - patch barrier to work with gcc 11

  - disable outdated test suite for python38Packages.backports-zoneinfo
    which still assumes zoneinfo 2020a.

* //3p/overlays/haskell: patch generic-arbitrary to avoid neg resizes

* //users/grfn/achilles: disable CI due to linking trouble (ugh).

* //users/grfn/system/home/games: Disable DFHack for dwarf fortress as
  it's now failing to build

Refs: ENG-328
Change-Id: I4e1ee8fd9525d4868b82f9bad8ca5f09e7fdb9d0
Reviewed-on: https://cl.tvl.fyi/c/depot/+/5506
Tested-by: BuildkiteCI
Reviewed-by: grfn <grfn@gws.fyi>
Diffstat (limited to 'third_party/overlays/haskell')
-rw-r--r--third_party/overlays/haskell/default.nix26
1 files changed, 18 insertions, 8 deletions
diff --git a/third_party/overlays/haskell/default.nix b/third_party/overlays/haskell/default.nix
index 6e18752f5270..2d01042f31de 100644
--- a/third_party/overlays/haskell/default.nix
+++ b/third_party/overlays/haskell/default.nix
@@ -9,6 +9,14 @@ self: super: # overlay parameters for the nixpkgs overlay
 let
   overrides = hsSelf: hsSuper: with self.haskell.lib.compose; {
     # No overrides for the default package set necessary at the moment
+    # TODO(sterni): upstreamable?
+    generic-arbitrary = appendPatch
+      (self.fetchpatch {
+        name = "generic-arbitrary-no-negative-resize.patch";
+        url = "https://github.com/typeable/generic-arbitrary/commit/c13d119d8ad0d43860ecdb93b357b0239e366a6c.patch";
+        sha256 = "1jgbd2jn575icqw9nfdzh57nacm3pn8n53ka52129pnfjqfzyhsi";
+      })
+      hsSuper.generic-arbitrary;
   };
 in
 {
@@ -18,15 +26,17 @@ in
 
   haskell = lib.recursiveUpdate super.haskell {
     packages.ghc8107 = super.haskell.packages.ghc8107.override {
-      overrides = hsSelf: hsSuper: with self.haskell.lib.compose; {
-        # TODO(sterni): TODO(grfn): patch xanthous to work with random-fu 0.3.*,
-        # so we can use GHC 9.0.2 and benefit from upstream binary cache.
-        random-fu = hsSelf.callPackage ./extra-pkgs/random-fu-0.2.nix { };
-        rvar = hsSelf.callPackage ./extra-pkgs/rvar-0.2.nix { };
+      overrides = lib.composeExtensions overrides (
+        hsSelf: hsSuper: with self.haskell.lib.compose; {
+          # TODO(sterni): TODO(grfn): patch xanthous to work with random-fu 0.3.*,
+          # so we can use GHC 9.0.2 and benefit from upstream binary cache.
+          random-fu = hsSelf.callPackage ./extra-pkgs/random-fu-0.2.nix { };
+          rvar = hsSelf.callPackage ./extra-pkgs/rvar-0.2.nix { };
 
-        # TODO(sterni): upstream this
-        universe-base = addBuildDepend hsSelf.OneTuple hsSuper.universe-base;
-      };
+          # TODO(sterni): upstream this
+          universe-base = addBuildDepend hsSelf.OneTuple hsSuper.universe-base;
+        }
+      );
     };
   };
 }