about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--third_party/nixpkgs-exposed/exposed/default.nix4
-rw-r--r--third_party/overlays/haskell/default.nix (renamed from third_party/nixpkgs-exposed/haskell_overlay/default.nix)6
-rw-r--r--third_party/overlays/haskell/patches/generic-arbitrary-export-garbitrary.patch (renamed from third_party/nixpkgs-exposed/haskell_overlay/patches/generic-arbitrary-export-garbitrary.patch)0
3 files changed, 8 insertions, 2 deletions
diff --git a/third_party/nixpkgs-exposed/exposed/default.nix b/third_party/nixpkgs-exposed/exposed/default.nix
index 3d3e23afab46..478b55cb2965 100644
--- a/third_party/nixpkgs-exposed/exposed/default.nix
+++ b/third_party/nixpkgs-exposed/exposed/default.nix
@@ -190,7 +190,9 @@
     ;
 
   haskellPackages = (nixpkgs.haskellPackages.override {
-    overrides = (import ../haskell_overlay { pkgs = nixpkgs; });
+    overrides = (import ../../overlays/haskell
+    { /* empty readTree arg */ }
+    { pkgs = nixpkgs; });
   });
 
   gradle_6 = (nixpkgs.gradleGen.override {
diff --git a/third_party/nixpkgs-exposed/haskell_overlay/default.nix b/third_party/overlays/haskell/default.nix
index 9b025d7d2828..975918803e29 100644
--- a/third_party/nixpkgs-exposed/haskell_overlay/default.nix
+++ b/third_party/overlays/haskell/default.nix
@@ -1,4 +1,8 @@
-{ pkgs }:
+# Defines overrides for Haskell packages, for example to avoid
+# breakage currently present in nixpkgs or to modify package versions.
+
+{ ... }: # This file needs nothing from readTree
+{ pkgs }: # ... but is called with a separate package set in the overlay
 
 self: super: with pkgs.haskell.lib; rec {
   generic-arbitrary = appendPatch
diff --git a/third_party/nixpkgs-exposed/haskell_overlay/patches/generic-arbitrary-export-garbitrary.patch b/third_party/overlays/haskell/patches/generic-arbitrary-export-garbitrary.patch
index f0c936bfca18..f0c936bfca18 100644
--- a/third_party/nixpkgs-exposed/haskell_overlay/patches/generic-arbitrary-export-garbitrary.patch
+++ b/third_party/overlays/haskell/patches/generic-arbitrary-export-garbitrary.patch