Skip to content

Commit cded0d6

Browse files
committed
Rename pkg-def-overlays to pkg-def-extras
Fixes #75
1 parent 5180ae9 commit cded0d6

File tree

10 files changed

+17
-17
lines changed

10 files changed

+17
-17
lines changed

default.nix

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ let
5555
# and Nix expressions representing cabal packages (cabal-to-nix).
5656
mkPkgSet =
5757
{ pkg-def # Base package set. Either from stackage (via stack-to-nix) or from a cabal projects plan file (via plan-to-nix)
58-
, pkg-def-overlays ? [] # Additional packages to augment the Base package set `pkg-def` with.
58+
, pkg-def-extras ? [] # Additional packages to augment the Base package set `pkg-def` with.
5959
, modules ? []
6060
}@args:
6161

@@ -67,7 +67,7 @@ let
6767
# Create a Haskell package set based on a Stack configuration.
6868
mkStackPkgSet =
6969
{ stack-pkgs # Path to the output of stack-to-nix
70-
, pkg-def-overlays ? []
70+
, pkg-def-extras ? []
7171
, modules ? []
7272
}@args:
7373

@@ -78,14 +78,14 @@ let
7878
compiler = (stack-pkgs.overlay hackage).compiler or (pkg-def hackage).compiler;
7979
in self.mkPkgSet {
8080
inherit pkg-def;
81-
pkg-def-overlays = [ stack-pkgs.overlay ] ++ pkg-def-overlays;
81+
pkg-def-extras = [ stack-pkgs.overlay ] ++ pkg-def-extras;
8282
modules = [ ghcHackagePatches.${compiler.nix-name} ] ++ modules;
8383
};
8484

8585
# Create a Haskell package set based on a Cabal configuration.
8686
mkCabalProjectPkgSet =
8787
{ plan-pkgs # Path to the output of plan-to-nix
88-
, pkg-def-overlays ? []
88+
, pkg-def-extras ? []
8989
, modules ? []
9090
}@args:
9191

@@ -95,7 +95,7 @@ let
9595
compiler = (plan-pkgs.overlay hackage).compiler or (pkg-def hackage).compiler;
9696
in self.mkPkgSet {
9797
inherit pkg-def;
98-
pkg-def-overlays = [ plan-pkgs.overlay ] ++ pkg-def-overlays;
98+
pkg-def-extras = [ plan-pkgs.overlay ] ++ pkg-def-extras;
9999
modules = [ ghcHackagePatches.${compiler.nix-name} ] ++ modules;
100100
};
101101

docs/iohk-nix.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ let
7474
# The overlay allows extension or restriction of the set of
7575
# packages we are interested in. By using the stack-pkgs.overlay
7676
# we restrict our package set to the ones provided in stack.yaml.
77-
pkg-def-overlays = [
77+
pkg-def-extras = [
7878
stack-pkgs.overlay
7979
iohk-overlay.${compiler}
8080
];

docs/user-guide-stack.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ let
4545
4646
pkgSet = haskell.mkStackPkgSet {
4747
stack-pkgs = import ./pkgs.nix;
48-
pkg-def-overlays = [];
48+
pkg-def-extras = [];
4949
modules = [];
5050
};
5151

docs/user-guide.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ let
8383
pkgSet = haskell.mkPkgSet {
8484
inherit pkgs;
8585
pkg-def = my-pkgs.pkg-def;
86-
pkg-def-overlays = [
86+
pkg-def-extras = [
8787
# this overlay will provide additional packages
8888
# ontop of the package set. E.g. extra-deps
8989
# for stack packages. or local packages for

package-set.nix

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
let f = { hackage, pkgs, pkg-def, pkg-def-overlays ? [], modules ? [] }: let
2-
buildModules = f { inherit hackage pkg-def pkg-def-overlays modules; pkgs = pkgs.buildPackages; };
1+
let f = { hackage, pkgs, pkg-def, pkg-def-extras ? [], modules ? [] }: let
2+
buildModules = f { inherit hackage pkg-def pkg-def-extras modules; pkgs = pkgs.buildPackages; };
33
in pkgs.lib.evalModules {
44
modules = modules ++ [
55
({ lib, ... }: {
@@ -56,14 +56,14 @@ in pkgs.lib.evalModules {
5656
then v
5757
else lib.mapAttrs (_: pkg: (expand-paths (inject-revision pkg))) v)
5858
(inject-packages overlay);
59-
# fold any potential `pkg-def-overlays`
59+
# fold any potential `pkg-def-extras`
6060
# onto the `pkg-def`.
6161
#
6262
# This means you can have a base definition (e.g. stackage)
6363
# and augment it with custom packages to your liking.
6464
in foldl' lib.recursiveUpdate
6565
(pkg-def hackage)
66-
(map (p: desugar (if builtins.isFunction p then p hackage else p)) pkg-def-overlays)
66+
(map (p: desugar (if builtins.isFunction p then p hackage else p)) pkg-def-extras)
6767
;
6868

6969
})

test/builder-haddock/default.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ let
99
# plan-to-nix dist-newstyle/cache/plan.json > plan.nix
1010
# cabal-to-nix test-haddock.cabal > test-haddock.nix
1111
pkg-def = import ./plan.nix;
12-
pkg-def-overlays = [
12+
pkg-def-extras = [
1313
{ test-haddock = ./test-haddock.nix; }
1414
];
1515
modules = [

test/cabal-22/default.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ with stdenv.lib;
55
let
66
pkgSet = mkPkgSet {
77
pkg-def = import ./plan.nix;
8-
pkg-def-overlays = [
8+
pkg-def-extras = [
99
{ project = ./project.nix; }
1010
];
1111
modules = [ ];

test/cabal-simple/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-simple = ./cabal-simple.nix;
1515
}
1616
];

test/stack-simple/default.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ let
77
# generated by running hpack then stack-to-nix.
88
pkgSet = mkStackPkgSet {
99
stack-pkgs = import ./stack-pkgs.nix;
10-
pkg-def-overlays = [];
10+
pkg-def-extras = [];
1111
modules = [];
1212
};
1313

test/with-packages/default.nix

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

0 commit comments

Comments
 (0)