mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 08:35:43 +02:00
tests/dependencies: add disabled list to skip testing broken dependencies
This commit is contained in:
parent
75efaa0a97
commit
91073486b2
1 changed files with 16 additions and 3 deletions
|
@ -15,10 +15,23 @@
|
|||
options,
|
||||
...
|
||||
}:
|
||||
let
|
||||
inherit (pkgs.stdenv) hostPlatform;
|
||||
|
||||
disabled = [
|
||||
];
|
||||
|
||||
enableDep = depName: depOption: {
|
||||
enable =
|
||||
# Filter disabled dependencies
|
||||
(!lib.elem depName disabled)
|
||||
|
||||
# Disable if the package is not compatible with hostPlatform
|
||||
&& lib.meta.availableOn hostPlatform depOption.package.default;
|
||||
};
|
||||
in
|
||||
{
|
||||
dependencies = lib.mapAttrs (_: depOption: {
|
||||
enable = lib.meta.availableOn pkgs.stdenv.hostPlatform depOption.package.default;
|
||||
}) options.dependencies;
|
||||
dependencies = lib.mapAttrs enableDep options.dependencies;
|
||||
};
|
||||
|
||||
all-examples =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue