diff options
author | lassulus <lassulus@lassul.us> | 2017-08-10 12:54:09 +0200 |
---|---|---|
committer | lassulus <lassulus@lassul.us> | 2017-08-10 12:54:09 +0200 |
commit | 2bf77c0cc0a10ad2a7a5be07a6aa2a36af4742fb (patch) | |
tree | 9c517ba7e5c55cc06c0e6319da6dc3c28bd6a106 /krebs/5pkgs/haskell/default.nix | |
parent | a6676174a858ee98a3568d13871b6f4e3bf4e73c (diff) | |
parent | 3d36c20b3669f544f567351463dfbb99b973a338 (diff) |
Merge remote-tracking branch 'ni/master' into HEAD
Diffstat (limited to 'krebs/5pkgs/haskell/default.nix')
-rw-r--r-- | krebs/5pkgs/haskell/default.nix | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/krebs/5pkgs/haskell/default.nix b/krebs/5pkgs/haskell/default.nix index 1120356a7..64c5f9257 100644 --- a/krebs/5pkgs/haskell/default.nix +++ b/krebs/5pkgs/haskell/default.nix @@ -1,15 +1,20 @@ with import <stockholm/lib>; - +let + overrides = self: super: + listToAttrs + (map + (name: nameValuePair (removeSuffix ".nix" name) + (self.callPackage (./. + "/${name}") {})) + (filter + (name: name != "default.nix" && !hasPrefix "." name) + (attrNames (readDir ./.)))); +in self: super: { + haskell.packages = mapAttrs (_: pkgs: pkgs.override { + inherit overrides; + }) super.haskell.packages; haskellPackages = super.haskellPackages.override { - overrides = self: super: - listToAttrs - (map - (name: nameValuePair (removeSuffix ".nix" name) - (self.callPackage (./. + "/${name}") {})) - (filter - (name: name != "default.nix" && !hasPrefix "." name) - (attrNames (readDir ./.)))); + inherit overrides; }; } |