File tree Expand file tree Collapse file tree 8 files changed +23
-23
lines changed Expand file tree Collapse file tree 8 files changed +23
-23
lines changed Original file line number Diff line number Diff line change 75
75
# The Stackage release referenced in the stack config
76
76
pkg-def = stackage . ${ stack-pkgs . resolver } ;
77
77
# The compiler referenced in the stack config
78
- compiler = ( stack-pkgs . overlay hackage ) . compiler or ( pkg-def hackage ) . compiler ;
78
+ compiler = ( stack-pkgs . extras hackage ) . compiler or ( pkg-def hackage ) . compiler ;
79
79
in self . mkPkgSet {
80
80
inherit pkg-def ;
81
- pkg-def-extras = [ stack-pkgs . overlay ] ++ pkg-def-extras ;
81
+ pkg-def-extras = [ stack-pkgs . extras ] ++ pkg-def-extras ;
82
82
modules = [ ghcHackagePatches . ${ compiler . nix-name } ] ++ modules ;
83
83
} ;
84
84
92
92
let
93
93
pkg-def = plan-pkgs . pkgs ;
94
94
# The compiler referenced in the stack config
95
- compiler = ( plan-pkgs . overlay hackage ) . compiler or ( pkg-def hackage ) . compiler ;
95
+ compiler = ( plan-pkgs . extras hackage ) . compiler or ( pkg-def hackage ) . compiler ;
96
96
in self . mkPkgSet {
97
97
inherit pkg-def ;
98
- pkg-def-extras = [ plan-pkgs . overlay ] ++ pkg-def-extras ;
98
+ pkg-def-extras = [ plan-pkgs . extras ] ++ pkg-def-extras ;
99
99
modules = [ ghcHackagePatches . ${ compiler . nix-name } ] ++ modules ;
100
100
} ;
101
101
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ iohk-nix.json
41
41
nix/pkgs.nix
42
42
```
43
43
{ pkgs ? import <nixpkgs> {}
44
- , iohk-overlay ? {}
44
+ , iohk-extras ? {}
45
45
, iohk-module ? {}
46
46
, haskell
47
47
, hackage
67
67
# packages.cbors.patches = [ ./one.patch ];
68
68
# packages.cbors.flags.optimize-gmp = false;
69
69
#
70
- compiler = (stack-pkgs.overlay hackage).compiler.nix-name;
70
+ compiler = (stack-pkgs.extras hackage).compiler.nix-name;
71
71
pkgSet = haskell.mkNewPkgSet {
72
72
inherit pkgs;
73
73
pkg-def = stackage.${stack-pkgs.resolver};
74
- # The extras allow extension or restriction of the set of
75
- # packages we are interested in. By using the stack-pkgs.overlay
74
+ # These extras allow extension or restriction of the set of
75
+ # packages we are interested in. By using the stack-pkgs.extras
76
76
# we restrict our package set to the ones provided in stack.yaml.
77
77
pkg-def-extras = [
78
- stack-pkgs.overlay
79
- iohk-overlay .${compiler}
78
+ stack-pkgs.extras
79
+ iohk-extras .${compiler}
80
80
];
81
81
# package customizations
82
82
modules = [
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ file as follows:
50
50
``` nix
51
51
let plan = import ./plan.nix; in
52
52
{ pkg-def = plan;
53
- overlay =
53
+ extras =
54
54
{ local-package-a = ./local-package-a.nix;
55
55
local-package-b = ./local-package-b.nix;
56
56
source-import-a = ./source-import-a.nix;
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ This will produce a `nix/pkgs.nix` file that looks like the following:
17
17
``` nix
18
18
{
19
19
resolver = "lts-12.17";
20
- overlay = hackage:
20
+ extras = hackage:
21
21
{
22
22
packages = {
23
23
"o-clock" = hackage.o-clock."0.1.1".revisions.default;
@@ -30,9 +30,9 @@ This will produce a `nix/pkgs.nix` file that looks like the following:
30
30
}
31
31
```
32
32
33
- This file contains the stackage resolver, as well as an overlay of
34
- packages. The overlay specifies which ` extra-deps ` (here: o-clock-0.1.1)
35
- we wanted to overlay over the stackage snapshot, and what local
33
+ This file contains the stackage resolver, as well as set of extra
34
+ packages. The extras specifies which ` extra-deps ` (here: o-clock-0.1.1)
35
+ we wanted to add over the stackage snapshot, and what local
36
36
packages we want (here: my-package).
37
37
38
38
* If you came here from the [ User Guide] ( /user-guide ) , go back and
Original file line number Diff line number Diff line change 87
87
pkgSet = haskell.mkPkgSet {
88
88
pkg-def = my-pkgs.pkg-def;
89
89
pkg-def-extras = [
90
- # this overlay will provide additional packages
90
+ # these extras will provide additional packages
91
91
# ontop of the package set. E.g. extra-deps
92
92
# for stack packages. or local packages for
93
93
# cabal.projects
94
- my-pkgs.overlay
94
+ my-pkgs.extras
95
95
];
96
96
modules = [
97
97
# specific package overrides would go here
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ in pkgs.lib.evalModules {
33
33
# or
34
34
# { y = ./foo.nix; }
35
35
# As such the desugarer desugars this short hand syntax.
36
- let desugar = overlay :
36
+ let desugar = extras :
37
37
let
38
38
isPath = x : builtins . typeOf x == "path" ;
39
39
# rewrite
@@ -51,11 +51,11 @@ in pkgs.lib.evalModules {
51
51
# into
52
52
# x.revision = import ./some/path;
53
53
expand-paths = pkg : if ! ( isPath pkg . revision ) then pkg else { revision = import pkg . revision ; } ;
54
- # apply injection and expansion to the "packages" in overlay .
54
+ # apply injection and expansion to the "packages" in extras .
55
55
in lib . mapAttrs ( k : v : if k != "packages"
56
56
then v
57
57
else lib . mapAttrs ( _ : pkg : ( expand-paths ( inject-revision pkg ) ) ) v )
58
- ( inject-packages overlay ) ;
58
+ ( inject-packages extras ) ;
59
59
# fold any potential `pkg-def-extras`
60
60
# onto the `pkg-def`.
61
61
#
Original file line number Diff line number Diff line change 10
10
# 3. plan-to-nix ./dist-newstyle/cache/plan.json > plan.nix
11
11
pkgSet = mkPkgSet {
12
12
pkg-def = import ./plan.nix ;
13
- pkg-def-overlays = [
13
+ pkg-def-extras = [
14
14
{ cabal-sublib = ./cabal-sublib.nix ;
15
15
}
16
16
] ;
Original file line number Diff line number Diff line change 1
1
{
2
- overlay = hackage :
2
+ extras = hackage :
3
3
{ packages = { } // { stack-simple = ./.stack.nix/stack-simple.nix ; } ; } ;
4
4
resolver = "lts-13.6" ;
5
- }
5
+ }
You can’t perform that action at this time.
0 commit comments