diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2015-07-16 20:35:51 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2015-07-16 20:35:51 +0200 |
commit | 6d71f6afb469e3ed9388fa9067d834953b639052 (patch) | |
tree | d151f501e1147879778893adeb17dcf679671da6 /users | |
parent | de99b7209b50cf15b9614b2298645120fd8a158c (diff) | |
download | nixos-6d71f6afb469e3ed9388fa9067d834953b639052.tar nixos-6d71f6afb469e3ed9388fa9067d834953b639052.tar.gz nixos-6d71f6afb469e3ed9388fa9067d834953b639052.tar.bz2 nixos-6d71f6afb469e3ed9388fa9067d834953b639052.tar.xz nixos-6d71f6afb469e3ed9388fa9067d834953b639052.zip |
better way of overwriting haskellPackages
Diffstat (limited to 'users')
-rw-r--r-- | users/gkleen@vali.nix | 12 |
1 files changed, 9 insertions, 3 deletions
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 @@ | |||
1 | { | 1 | { |
2 | packageOverrides = pkgs: rec { | 2 | packageOverrides = pkgs: rec { |
3 | redo = pkgs.callPackage ../custom/redo-wrapper.nix {}; | 3 | redo = pkgs.callPackage ../custom/redo-wrapper.nix {}; |
4 | myHaskellPackages = pkgs.haskellPackages // { | 4 | myHaskellPackages = pkgs.recurseIntoAttrs ( |
5 | inherit (pkgs.haskellngPackages) boolexpr; | 5 | pkgs.haskellPackages.override { |
6 | }; | 6 | extension = self: super: let |
7 | callPackage = pkgs.lib.callPackageWith self; | ||
8 | in rec { | ||
9 | inherit (pkgs.haskellngPackages) boolexpr; | ||
10 | }; | ||
11 | } | ||
12 | ); | ||
7 | } // (import ../utils/nix/default.nix) {}; | 13 | } // (import ../utils/nix/default.nix) {}; |
8 | } | 14 | } |