summaryrefslogtreecommitdiffstats
path: root/krebs/5pkgs/default.nix
diff options
context:
space:
mode:
authortv <tv@shackspace.de>2015-10-17 05:50:58 +0200
committertv <tv@shackspace.de>2015-10-17 05:50:58 +0200
commit421bf2ac0837e5652898ce7f7b983dc727fd5920 (patch)
tree79896ced5c503288576a5fd95eb724840f1f5d3a /krebs/5pkgs/default.nix
parent15c6f0678fad4bb7541338e4f422e8a913d616f9 (diff)
krebs pkgs: init haskell-overrides
Diffstat (limited to 'krebs/5pkgs/default.nix')
-rw-r--r--krebs/5pkgs/default.nix14
1 files changed, 14 insertions, 0 deletions
diff --git a/krebs/5pkgs/default.nix b/krebs/5pkgs/default.nix
index 77519e831..e7fedce53 100644
--- a/krebs/5pkgs/default.nix
+++ b/krebs/5pkgs/default.nix
@@ -9,6 +9,20 @@ in
subdirs // rec {
+ haskellPackages = pkgs.haskellPackages.override {
+ overrides = self: super:
+ mapAttrs (name: path: self.callPackage path {})
+ (mapAttrs'
+ (name: type:
+ if hasSuffix ".nix" name
+ then {
+ name = removeSuffix ".nix" name;
+ value = ./haskell-overrides + "/${name}";
+ }
+ else null)
+ (builtins.readDir ./haskell-overrides));
+ };
+
push = pkgs'.callPackage ./push {
inherit (subdirs) get jq;
};