feat(devShells): implement adding custom environment variables
This commit is contained in:
parent
e1e3a9c404
commit
3c0b8071fa
1 changed files with 8 additions and 5 deletions
|
|
@ -61,11 +61,14 @@ in
|
||||||
let
|
let
|
||||||
cfg = import ./${name}/default.nix pkgs;
|
cfg = import ./${name}/default.nix pkgs;
|
||||||
in
|
in
|
||||||
pkgs.mkShell {
|
pkgs.mkShell (
|
||||||
|
{
|
||||||
inherit name;
|
inherit name;
|
||||||
packages = map (p: p) (builtins.attrValues cfg.packages);
|
packages = map (p: p) (builtins.attrValues cfg.packages);
|
||||||
shellHook = cfg.shellHook or "";
|
shellHook = cfg.shellHook or "";
|
||||||
};
|
}
|
||||||
|
// (cfg.env or { })
|
||||||
|
);
|
||||||
}) dirs
|
}) dirs
|
||||||
)
|
)
|
||||||
// {
|
// {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue