1
1
mirror of https://github.com/qfpl/applied-fp-course.git synced 2024-11-22 11:23:01 +03:00
applied-fp-course/course-overlays.nix
Sean Chalmers 2355f466a2 Separate out overlays
Clean up default.nix
2019-02-28 13:20:13 +10:00

19 lines
551 B
Nix

let
sources = {
tasty-wai = import ./nix/tasty-wai.nix;
waarg = import ./nix/waargonaut.nix;
};
waarg-deps = import "${sources.waarg}/waargonaut-deps.nix";
course = self: super: {
haskellPackages = super.haskellPackages.override (old: {
overrides = super.lib.composeExtensions (old.overrides or (_: _: {})) (hself: hsuper: {
tasty-wai = hself.callCabal2nix "tasty-wai" sources.tasty-wai {};
waargonaut = hself.callCabal2nix "waargonaut" sources.waarg {};
});
});
};
in
[ waarg-deps course ]