summaryrefslogtreecommitdiffstats
path: root/tv/5pkgs/haskell/default.nix
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
commit4319a386800c8dd535fe8b7273539d258e3c6092 (patch)
treee67fd2dde2aef5b9fbefc90a4ff6d6b9482997d6 /tv/5pkgs/haskell/default.nix
parent5f0b1b803500f468a1d60217cc0fc81bb8fd58aa (diff)
tv pkgs haskell: init
Diffstat (limited to 'tv/5pkgs/haskell/default.nix')
-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 000000000..fcede2f9c
--- /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;
+ };
+ }