Skip to content

Commit 95ff192

Browse files
committed
overlay -> extras
1 parent 0234c0b commit 95ff192

File tree

8 files changed

+23
-23
lines changed

8 files changed

+23
-23
lines changed

default.nix

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,10 @@ let
7575
# The Stackage release referenced in the stack config
7676
pkg-def = stackage.${stack-pkgs.resolver};
7777
# 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;
7979
in self.mkPkgSet {
8080
inherit pkg-def;
81-
pkg-def-extras = [ stack-pkgs.overlay ] ++ pkg-def-extras;
81+
pkg-def-extras = [ stack-pkgs.extras ] ++ pkg-def-extras;
8282
modules = [ ghcHackagePatches.${compiler.nix-name} ] ++ modules;
8383
};
8484

@@ -92,10 +92,10 @@ let
9292
let
9393
pkg-def = plan-pkgs.pkgs;
9494
# 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;
9696
in self.mkPkgSet {
9797
inherit pkg-def;
98-
pkg-def-extras = [ plan-pkgs.overlay ] ++ pkg-def-extras;
98+
pkg-def-extras = [ plan-pkgs.extras ] ++ pkg-def-extras;
9999
modules = [ ghcHackagePatches.${compiler.nix-name} ] ++ modules;
100100
};
101101

docs/iohk-nix.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ iohk-nix.json
4141
nix/pkgs.nix
4242
```
4343
{ pkgs ? import <nixpkgs> {}
44-
, iohk-overlay ? {}
44+
, iohk-extras ? {}
4545
, iohk-module ? {}
4646
, haskell
4747
, hackage
@@ -67,16 +67,16 @@ let
6767
# packages.cbors.patches = [ ./one.patch ];
6868
# packages.cbors.flags.optimize-gmp = false;
6969
#
70-
compiler = (stack-pkgs.overlay hackage).compiler.nix-name;
70+
compiler = (stack-pkgs.extras hackage).compiler.nix-name;
7171
pkgSet = haskell.mkNewPkgSet {
7272
inherit pkgs;
7373
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
7676
# we restrict our package set to the ones provided in stack.yaml.
7777
pkg-def-extras = [
78-
stack-pkgs.overlay
79-
iohk-overlay.${compiler}
78+
stack-pkgs.extras
79+
iohk-extras.${compiler}
8080
];
8181
# package customizations
8282
modules = [

docs/user-guide-cabal.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ file as follows:
5050
```nix
5151
let plan = import ./plan.nix; in
5252
{ pkg-def = plan;
53-
overlay =
53+
extras =
5454
{ local-package-a = ./local-package-a.nix;
5555
local-package-b = ./local-package-b.nix;
5656
source-import-a = ./source-import-a.nix;

docs/user-guide-stack.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ This will produce a `nix/pkgs.nix` file that looks like the following:
1717
```nix
1818
{
1919
resolver = "lts-12.17";
20-
overlay = hackage:
20+
extras = hackage:
2121
{
2222
packages = {
2323
"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:
3030
}
3131
```
3232

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
3636
packages we want (here: my-package).
3737

3838
*If you came here from the [User Guide](/user-guide), go back and

docs/user-guide.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,11 @@ let
8787
pkgSet = haskell.mkPkgSet {
8888
pkg-def = my-pkgs.pkg-def;
8989
pkg-def-extras = [
90-
# this overlay will provide additional packages
90+
# these extras will provide additional packages
9191
# ontop of the package set. E.g. extra-deps
9292
# for stack packages. or local packages for
9393
# cabal.projects
94-
my-pkgs.overlay
94+
my-pkgs.extras
9595
];
9696
modules = [
9797
# specific package overrides would go here

package-set.nix

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ in pkgs.lib.evalModules {
3333
# or
3434
# { y = ./foo.nix; }
3535
# As such the desugarer desugars this short hand syntax.
36-
let desugar = overlay:
36+
let desugar = extras:
3737
let
3838
isPath = x: builtins.typeOf x == "path";
3939
# rewrite
@@ -51,11 +51,11 @@ in pkgs.lib.evalModules {
5151
# into
5252
# x.revision = import ./some/path;
5353
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.
5555
in lib.mapAttrs (k: v: if k != "packages"
5656
then v
5757
else lib.mapAttrs (_: pkg: (expand-paths (inject-revision pkg))) v)
58-
(inject-packages overlay);
58+
(inject-packages extras);
5959
# fold any potential `pkg-def-extras`
6060
# onto the `pkg-def`.
6161
#

test/cabal-sublib/default.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ let
1010
# 3. plan-to-nix ./dist-newstyle/cache/plan.json > plan.nix
1111
pkgSet = mkPkgSet {
1212
pkg-def = import ./plan.nix;
13-
pkg-def-overlays = [
13+
pkg-def-extras = [
1414
{ cabal-sublib = ./cabal-sublib.nix;
1515
}
1616
];

test/stack-simple/stack-pkgs.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
overlay = hackage:
2+
extras = hackage:
33
{ packages = {} // { stack-simple = ./.stack.nix/stack-simple.nix; }; };
44
resolver = "lts-13.6";
5-
}
5+
}

0 commit comments

Comments
 (0)