Add Haskell packages overlay

This commit is contained in:
Evan Relf 2021-04-23 10:31:00 -07:00 committed by Evan Relf
parent 7cce30e1df
commit 3a61ef6e07
2 changed files with 23 additions and 0 deletions

View File

@ -0,0 +1,20 @@
pkgsFinal: pkgsPrev:
let
extension = pkgsPrev.haskell.lib.packageSourceOverrides {
hocker = pkgsPrev.nix-gitignore.gitignoreSource [ ] ../../.;
};
in
{
haskellPackages =
pkgsPrev.haskellPackages.override (old: {
overrides =
pkgsPrev.lib.fold
pkgsPrev.lib.composeExtensions
(old.overrides or (_: _: { }))
[
extension
];
});
}

View File

@ -12,4 +12,7 @@ let
in
import nixpkgs {
config = { allowUnfree = true; };
overlays = [
(import ./overlays/haskell-packages.nix)
];
}