mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +02:00
tests/nixpkgs: move nixpkgs module test to dedicated drv
This should be separate from `test-sources` because we want to re-use a
common instance of nixpkgs throughout those tests.
Also, moved the existing nixpkgs module test from `test-sources`.
This partially reverts commit c4ad4d0b2e
.
This commit is contained in:
parent
54e6dbd8c8
commit
5b068e7f8f
3 changed files with 46 additions and 22 deletions
|
@ -8,7 +8,6 @@
|
|||
pkgs,
|
||||
pkgsUnfree,
|
||||
self,
|
||||
system,
|
||||
}:
|
||||
let
|
||||
fetchTests = callTest ./fetch-tests.nix { };
|
||||
|
@ -19,14 +18,12 @@ let
|
|||
file: name: module:
|
||||
mkTestDerivationFromNixvimModule {
|
||||
inherit name;
|
||||
# Use a single common instance of nixpkgs, with allowUnfree
|
||||
# Having a single shared instance should speed up tests a little
|
||||
module = {
|
||||
_file = file;
|
||||
imports = [ module ];
|
||||
_module.args = {
|
||||
# Give tests access to the flake
|
||||
inherit self system;
|
||||
inherit (self) inputs;
|
||||
};
|
||||
nixpkgs.pkgs = pkgsUnfree;
|
||||
};
|
||||
pkgs = pkgsUnfree;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue