feat(devShells): implement adding custom environment variables

This commit is contained in:
Sk7Str1p3 2026-05-15 21:27:28 +03:00
parent e1e3a9c404
commit 3c0b8071fa
No known key found for this signature in database
GPG key ID: 4DD995933D06D43B

View file

@ -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; {
packages = map (p: p) (builtins.attrValues cfg.packages); inherit name;
shellHook = cfg.shellHook or ""; packages = map (p: p) (builtins.attrValues cfg.packages);
}; shellHook = cfg.shellHook or "";
}
// (cfg.env or { })
);
}) dirs }) dirs
) )
// { // {