-
Notifications
You must be signed in to change notification settings - Fork 2
/
default.nix
31 lines (31 loc) · 918 Bytes
/
default.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{
/* Build overlay of haskell packages as used by your projects:
*
* Example:
*
* let
* cheopslab-pkg = import (builtins.fetchGit {...});
* overlay = [
* (cheopslab-pkg.mk-overlay {})
* ...
* ];
*/
mk-overlay = {ghcVersion ? "ghc8107"}:
self: super:
{
# Defining cheopslab hierarchy.
cheopslab = {
# Tools for building docker images.
docker = import ./nix/docker.nix self;
# Define haskell packages we use
haskellPackages = super.haskell.packages.${ghcVersion}.override {
overrides = hfinal: hprev:
with super.haskell.lib;
# auto-generated by nix/haskellPackages/update.sh
(import ./nix/default.nix) super.haskell.lib hprev
};
# Library with helper functions.
lib = (import ./nix/lib.nix) self super;
};
};
}