Skip to content

Commit

Permalink
fix #1269: respect devenv.isTesting only when modules have it
Browse files Browse the repository at this point in the history
  • Loading branch information
domenkozar committed Jun 12, 2024
1 parent c306331 commit 5c5b90f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions devenv/src/flake.tmpl.nix
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@
(pkgs.lib.optionalAttrs (inputs.devenv.isTmpDir or false) {
devenv.tmpdir = devenv_tmpdir;
devenv.runtime = devenv_runtime;
})
(pkgs.lib.optionalAttrs (inputs.devenv.hasIsTesting or false) {
devenv.isTesting = devenv_istesting;
})
(pkgs.lib.optionalAttrs (container_name != null) {
Expand Down
1 change: 1 addition & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@

modules = ./src/modules;
isTmpDir = true;
hasIsTesting = true;

templates =
let
Expand Down
1 change: 1 addition & 0 deletions src/modules/flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
outputs = { ... }: {
modules = ./.;
isTmpDir = true;
hasIsTesting = true;
};
}

0 comments on commit 5c5b90f

Please sign in to comment.