Skip to content

Commit

Permalink
remove checks/ for max consiseness
Browse files Browse the repository at this point in the history
  • Loading branch information
steveej committed Jan 15, 2025
1 parent 3581935 commit 08647c8
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 39 deletions.
38 changes: 0 additions & 38 deletions checks/nixos-test.nix

This file was deleted.

36 changes: 35 additions & 1 deletion packages/default.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,41 @@
{ pkgs, flake, ... }:

let
testModule =
{ pkgs }:

pkgs.testers.runNixOSTest (
{ ... }:
{
name = "nixos-test";

nodes.machine =
{ pkgs, ... }:
{
imports = [
(
{ ... }:

{
config =
# mysteriously broken:
pkgs.lib.mkIf true { };

# works:
# lib.mkIf true { };
}
)
];
};

testScript = _: '''';
}
);

in

pkgs.runCommand "repro"
{ passthru.tests.repro = import ../checks/nixos-test.nix { inherit pkgs flake; }; }
{ passthru.tests.repro = testModule { inherit pkgs; }; }
''
touch $out
''

0 comments on commit 08647c8

Please sign in to comment.