From 6d71f6afb469e3ed9388fa9067d834953b639052 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Thu, 16 Jul 2015 20:35:51 +0200 Subject: better way of overwriting haskellPackages --- users/gkleen@vali.nix | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'users') diff --git a/users/gkleen@vali.nix b/users/gkleen@vali.nix index 59da76e7..873e50c1 100644 --- a/users/gkleen@vali.nix +++ b/users/gkleen@vali.nix @@ -1,8 +1,14 @@ { packageOverrides = pkgs: rec { redo = pkgs.callPackage ../custom/redo-wrapper.nix {}; - myHaskellPackages = pkgs.haskellPackages // { - inherit (pkgs.haskellngPackages) boolexpr; - }; + myHaskellPackages = pkgs.recurseIntoAttrs ( + pkgs.haskellPackages.override { + extension = self: super: let + callPackage = pkgs.lib.callPackageWith self; + in rec { + inherit (pkgs.haskellngPackages) boolexpr; + }; + } + ); } // (import ../utils/nix/default.nix) {}; } -- cgit v1.2.3