mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 16:39:00 +02:00
flake/packages: exclude docs from packages on darwin
This commit is contained in:
parent
ef3b3f3bbb
commit
782f2d6150
2 changed files with 23 additions and 26 deletions
|
@ -6,33 +6,28 @@
|
||||||
makeNixvimWithModule,
|
makeNixvimWithModule,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
checks =
|
checks = {
|
||||||
{
|
tests = import ../tests {
|
||||||
tests = import ../tests {
|
inherit pkgs;
|
||||||
inherit pkgs;
|
inherit (pkgs) lib;
|
||||||
inherit (pkgs) lib;
|
makeNixvim = configuration:
|
||||||
makeNixvim = configuration:
|
makeNixvimWithModuleUnfree {
|
||||||
makeNixvimWithModuleUnfree {
|
module = {
|
||||||
module = {
|
config = configuration;
|
||||||
config = configuration;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
|
||||||
extra-args-tests = import ../tests/extra-args.nix {
|
extra-args-tests = import ../tests/extra-args.nix {
|
||||||
inherit pkgs;
|
inherit pkgs;
|
||||||
inherit makeNixvimWithModule;
|
inherit makeNixvimWithModule;
|
||||||
};
|
};
|
||||||
|
|
||||||
lib-tests = import ../tests/lib-tests.nix {
|
lib-tests = import ../tests/lib-tests.nix {
|
||||||
inherit pkgs;
|
inherit pkgs;
|
||||||
inherit (pkgs) lib;
|
inherit (pkgs) lib;
|
||||||
};
|
};
|
||||||
}
|
docs = config.packages.docs ? null;
|
||||||
# Do not check if documentation builds fine on darwin as it fails:
|
};
|
||||||
# > sandbox-exec: pattern serialization length 69298 exceeds maximum (65535)
|
|
||||||
// (pkgs.lib.optionalAttrs (!pkgs.stdenv.isDarwin) {
|
|
||||||
inherit (config.packages) docs;
|
|
||||||
});
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,7 +7,9 @@
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
packages = let
|
packages = let
|
||||||
docs = {
|
# Do not check if documentation builds fine on darwin as it fails:
|
||||||
|
# > sandbox-exec: pattern serialization length 69298 exceeds maximum (65535)
|
||||||
|
docs = pkgs.lib.optionalAttrs (!pkgs.stdenv.isDarwin) {
|
||||||
docs = pkgsUnfree.callPackage (import ../docs) {
|
docs = pkgsUnfree.callPackage (import ../docs) {
|
||||||
inherit modules;
|
inherit modules;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue