Skip to content

Commit 1f9c2db

Browse files
committed
build(nix): pipe environments into build
This commit (somewhat awkwardly) injects our build environments as top level children of the pkgs key. I am aware that I can do nix + fp tricks to make this more succinct and flexible, but I really am trying to keep this nix code basic where practical, and I don't expect us to have a very large number of environments. Signed-off-by: Daniel Noland <[email protected]>
1 parent 1e1a25c commit 1f9c2db

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

default.nix

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,22 @@
11
let
22
sources = import ./npins;
3-
overlays = import ./nix/overlays {
3+
profiles = import ./profiles.nix;
4+
overlays.debug = import ./nix/overlays {
45
inherit sources;
6+
env = profiles.debug;
57
};
6-
pkgs = import sources.nixpkgs {
8+
overlays.release = import ./nix/overlays {
9+
inherit sources;
10+
env = profiles.release;
11+
};
12+
pkgs.debug = import sources.nixpkgs {
13+
overlays = [
14+
overlays.debug.dataplane
15+
];
16+
};
17+
pkgs.release = import sources.nixpkgs {
718
overlays = [
8-
overlays.dataplane
19+
overlays.release.dataplane
920
];
1021
};
1122
in

0 commit comments

Comments
 (0)