override all Haskell packages

This commit is contained in:
tv 2017-08-06 21:33:10 +02:00
parent 87c7d8dcf9
commit a4c61396ed

View File

@ -1,8 +1,5 @@
with import <stockholm/lib>; with import <stockholm/lib>;
let
self: super:
{
haskellPackages = super.haskellPackages.override {
overrides = self: super: overrides = self: super:
listToAttrs listToAttrs
(map (map
@ -11,5 +8,13 @@ self: super:
(filter (filter
(name: name != "default.nix" && !hasPrefix "." name) (name: name != "default.nix" && !hasPrefix "." name)
(attrNames (readDir ./.)))); (attrNames (readDir ./.))));
in
self: super:
{
haskell.packages = mapAttrs (_: pkgs: pkgs.override {
inherit overrides;
}) super.haskell.packages;
haskellPackages = super.haskellPackages.override {
inherit overrides;
}; };
} }