mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 08:35:43 +02:00
flake/wrappers: move wrappers checks to wrappers.nix
This commit is contained in:
parent
2167c1930c
commit
ed02648368
2 changed files with 54 additions and 54 deletions
|
@ -1,8 +1,4 @@
|
||||||
{
|
{
|
||||||
inputs,
|
|
||||||
self,
|
|
||||||
...
|
|
||||||
}: {
|
|
||||||
perSystem = {
|
perSystem = {
|
||||||
pkgs,
|
pkgs,
|
||||||
config,
|
config,
|
||||||
|
@ -11,8 +7,7 @@
|
||||||
makeNixvimWithModule,
|
makeNixvimWithModule,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
checks =
|
checks = {
|
||||||
{
|
|
||||||
tests = import ../tests {
|
tests = import ../tests {
|
||||||
inherit pkgs;
|
inherit pkgs;
|
||||||
inherit (pkgs) lib;
|
inherit (pkgs) lib;
|
||||||
|
@ -33,35 +28,6 @@
|
||||||
inherit pkgs;
|
inherit pkgs;
|
||||||
inherit (pkgs) lib;
|
inherit (pkgs) lib;
|
||||||
};
|
};
|
||||||
|
|
||||||
home-manager-module =
|
|
||||||
(import ../tests/modules/hm.nix {
|
|
||||||
inherit pkgs;
|
|
||||||
inherit (inputs) home-manager;
|
|
||||||
nixvim = self;
|
|
||||||
})
|
|
||||||
.activationPackage;
|
|
||||||
}
|
|
||||||
// pkgs.lib.optionalAttrs (!pkgs.stdenv.isDarwin) {
|
|
||||||
nixos-module =
|
|
||||||
(import ../tests/modules/nixos.nix {
|
|
||||||
inherit system;
|
|
||||||
inherit (inputs) nixpkgs;
|
|
||||||
nixvim = self;
|
|
||||||
})
|
|
||||||
.config
|
|
||||||
.system
|
|
||||||
.build
|
|
||||||
.toplevel;
|
|
||||||
}
|
|
||||||
// pkgs.lib.optionalAttrs pkgs.stdenv.isDarwin {
|
|
||||||
darwin-module =
|
|
||||||
(import ../tests/modules/darwin.nix {
|
|
||||||
inherit system;
|
|
||||||
inherit (inputs) nix-darwin;
|
|
||||||
nixvim = self;
|
|
||||||
})
|
|
||||||
.system;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
{
|
{
|
||||||
|
inputs,
|
||||||
modules,
|
modules,
|
||||||
self,
|
self,
|
||||||
...
|
...
|
||||||
|
@ -9,6 +10,7 @@
|
||||||
};
|
};
|
||||||
in {
|
in {
|
||||||
perSystem = {
|
perSystem = {
|
||||||
|
system,
|
||||||
pkgs,
|
pkgs,
|
||||||
pkgsUnfree,
|
pkgsUnfree,
|
||||||
config,
|
config,
|
||||||
|
@ -25,6 +27,38 @@ in {
|
||||||
pkgsUnfree
|
pkgsUnfree
|
||||||
wrapperArgs;
|
wrapperArgs;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
checks =
|
||||||
|
{
|
||||||
|
home-manager-module =
|
||||||
|
(import ../tests/modules/hm.nix {
|
||||||
|
inherit pkgs;
|
||||||
|
inherit (inputs) home-manager;
|
||||||
|
nixvim = self;
|
||||||
|
})
|
||||||
|
.activationPackage;
|
||||||
|
}
|
||||||
|
// pkgs.lib.optionalAttrs (!pkgs.stdenv.isDarwin) {
|
||||||
|
nixos-module =
|
||||||
|
(import ../tests/modules/nixos.nix {
|
||||||
|
inherit system;
|
||||||
|
inherit (inputs) nixpkgs;
|
||||||
|
nixvim = self;
|
||||||
|
})
|
||||||
|
.config
|
||||||
|
.system
|
||||||
|
.build
|
||||||
|
.toplevel;
|
||||||
|
}
|
||||||
|
// pkgs.lib.optionalAttrs pkgs.stdenv.isDarwin {
|
||||||
|
darwin-module =
|
||||||
|
(import ../tests/modules/darwin.nix {
|
||||||
|
inherit system;
|
||||||
|
inherit (inputs) nix-darwin;
|
||||||
|
nixvim = self;
|
||||||
|
})
|
||||||
|
.system;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
flake = {
|
flake = {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue