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
|
||||
cfg = import ./${name}/default.nix pkgs;
|
||||
in
|
||||
pkgs.mkShell {
|
||||
inherit name;
|
||||
packages = map (p: p) (builtins.attrValues cfg.packages);
|
||||
shellHook = cfg.shellHook or "";
|
||||
};
|
||||
pkgs.mkShell (
|
||||
{
|
||||
inherit name;
|
||||
packages = map (p: p) (builtins.attrValues cfg.packages);
|
||||
shellHook = cfg.shellHook or "";
|
||||
}
|
||||
// (cfg.env or { })
|
||||
);
|
||||
}) dirs
|
||||
)
|
||||
// {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue