From a601787e55c50ca6805a34e5e5190a3943cfb00b Mon Sep 17 00:00:00 2001 From: Bas van Dijk Date: Sun, 10 Jun 2018 12:32:20 +0200 Subject: [PATCH] haskell: fix overriding haskellPackages using haskell.packageOverrides Tested using: $ nix-build -E '(import ./. { overlays = [(final : previous : { haskell = previous.haskell // { packageOverrides = self : super : {blablabla = super.scientific;};};})];}).haskellPackages.blablabla' /nix/store/s75xbfhn88187jk8238h4ii2ap9kg4m2-scientific-0.3.6.2 --- pkgs/top-level/all-packages.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index bc48df43f404..db65cd4a9b86 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -6460,7 +6460,7 @@ with pkgs; haskell = callPackage ./haskell-packages.nix { }; haskellPackages = haskell.packages.ghc822.override { - overrides = config.haskellPackageOverrides or (self: super: {}); + overrides = config.haskellPackageOverrides or haskell.packageOverrides; }; inherit (haskellPackages) ghc;