1let f = { hackage, pkgs, pkg-def, pkg-def-overlays ? [], modules ? [] }: let
2 buildModules = f { inherit hackage pkg-def pkg-def-overlays modules; pkgs = pkgs.buildPackages; };
3in pkgs.lib.evalModules {
6 # Provide all modules with haskellLib, pkgs, and pkgconfPkgs arguments
8 # this is *not* the hasekllLib from nixpkgs; it is rather our own
9 # library from haskell.nix
10 haskellLib = let hl = import ./lib { inherit lib; haskellLib = hl; }; in hl;
12 # The package descriptions depend on pkgs, which are used to resolve system package dependencies
13 # as well as pkgconfPkgs, which are used to resolve pkgconfig name to nixpkgs names. We simply
14 # augment the existing pkgs set with the specific mappings:
15 pkgs = pkgs // (import ./lib/system-nixpkgs-map.nix pkgs);
16 pkgconfPkgs = pkgs // (import ./lib/pkgconf-nixpkgs-map.nix pkgs);
21 # Set the hackage DB for modules/hackage.nix
24 # Set the plan for modules/plan.nix
25 plan.pkg-def = hackage: with builtins;
26 # fold any potential `pkg-def-overlays`
29 # This means you can have a base definition (e.g. stackage)
30 # and augment it with custom packages to your liking.
31 foldl' lib.recursiveUpdate
33 (map (p: p hackage) pkg-def-overlays)
41 # Converts config.packages into config.hsPkgs
42 # Replace this with compat-driver.nix to use nixpkgs haskell build infra
43 ./modules/component-driver.nix
45 # Converts config.hackage.db to config.hackage.configs
48 # Converts config.hackage.configs and pkg-def to config.packages
51 # Configuration that applies to all plans
52 ./modules/configuration-nix.nix
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list