mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +02:00
tests/test-derivation: don't invoke test modules
`def.module or lib.removeAttrs def [ "tests" ]` is actually equivalent to `(def.module or lib.removeAttrs) def [ "tests" ]`. This meant whenever `def` had a `module` attribute, it was invoked as `def.module def [ "tests" ]`!
This commit is contained in:
parent
714aa7bb18
commit
78275321f8
1 changed files with 1 additions and 1 deletions
|
@ -37,7 +37,7 @@ let
|
||||||
inherit name;
|
inherit name;
|
||||||
# The module can either be the actual definition,
|
# The module can either be the actual definition,
|
||||||
# or a child attr named `module`.
|
# or a child attr named `module`.
|
||||||
module = def.module or lib.removeAttrs def [ "tests" ];
|
module = def.module or (lib.removeAttrs def [ "tests" ]);
|
||||||
dontRun = def.tests.dontRun or false;
|
dontRun = def.tests.dontRun or false;
|
||||||
pkgs = pkgsUnfree;
|
pkgs = pkgsUnfree;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue