diff options
author | tv <tv@krebsco.de> | 2018-11-30 09:41:32 +0100 |
---|---|---|
committer | tv <tv@krebsco.de> | 2018-11-30 09:48:36 +0100 |
commit | 4319a386800c8dd535fe8b7273539d258e3c6092 (patch) | |
tree | e67fd2dde2aef5b9fbefc90a4ff6d6b9482997d6 /tv/5pkgs/haskell | |
parent | 5f0b1b803500f468a1d60217cc0fc81bb8fd58aa (diff) |
tv pkgs haskell: init
Diffstat (limited to 'tv/5pkgs/haskell')
-rw-r--r-- | tv/5pkgs/haskell/default.nix | 20 |
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; + }; + } |