summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2018-11-30 09:41:32 +0100
committertv <tv@krebsco.de>2018-11-30 09:48:36 +0100
commit26f6e0ffdb75300858764517d1c82819ee485a5e (patch)
tree0461b8fcf5e9ed3581710e575b05f35897fbdca8
parent498668488f801d6accb7d7937f958eecc3135ac3 (diff)
tv pkgs haskell: init
-rw-r--r--tv/5pkgs/haskell/default.nix20
1 files changed, 20 insertions, 0 deletions
diff --git a/tv/5pkgs/haskell/default.nix b/tv/5pkgs/haskell/default.nix
new file mode 100644
index 0000000..fcede2f
--- /dev/null
+++ b/tv/5pkgs/haskell/default.nix
@@ -0,0 +1,20 @@
+with import <stockholm/lib>;
+let
+ overrides = self: super:
+ mapNixDir (path: self.callPackage path {}) [
+ <stockholm/krebs/5pkgs/haskell>
+ ./.
+ ];
+in
+ self: super: {
+ haskell = super.haskell // {
+ packages = mapAttrs (name: value:
+ if hasAttr "override" value
+ then value.override { inherit overrides; }
+ else value
+ ) super.haskell.packages;
+ };
+ haskellPackages = super.haskellPackages.override {
+ inherit overrides;
+ };
+ }