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 | 26f6e0ffdb75300858764517d1c82819ee485a5e (patch) | |
tree | 0461b8fcf5e9ed3581710e575b05f35897fbdca8 | |
parent | 498668488f801d6accb7d7937f958eecc3135ac3 (diff) |
tv pkgs haskell: init
-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 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; + }; + } |