Skip to content

Commit

Permalink
Merge pull request #1092 from cachix/stdenv-override
Browse files Browse the repository at this point in the history
Allow overriding stdenv
  • Loading branch information
domenkozar authored Apr 2, 2024
2 parents 9a00a3d + a72055d commit a3ac4a4
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/modules/top-level.nix
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,12 @@ in
default = [ ];
};

stdenv = lib.mkOption {
type = types.package;
description = "The stdenv to use for the developer environment.";
default = pkgs.stdenv;
};

unsetEnvVars = lib.mkOption {
type = types.listOf types.str;
description = "Remove these list of env vars from being exported to keep the shell/direnv more lean.";
Expand Down Expand Up @@ -275,7 +281,7 @@ in
'';

shell = performAssertions (
pkgs.mkShell ({
(pkgs.mkShell.override { stdenv = config.stdenv; }) ({
name = "devenv-shell";
packages = config.packages;
shellHook = ''
Expand Down

0 comments on commit a3ac4a4

Please sign in to comment.