Skip to content

Commit

Permalink
flake/packages: exclude docs from packages on darwin
Browse files Browse the repository at this point in the history
  • Loading branch information
GaetanLepage committed Jan 6, 2024
1 parent a8852ca commit 9acb792
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 26 deletions.
45 changes: 20 additions & 25 deletions flake-modules/checks.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,33 +6,28 @@
makeNixvimWithModule,
...
}: {
checks =
{
tests = import ../tests {
inherit pkgs;
inherit (pkgs) lib;
makeNixvim = configuration:
makeNixvimWithModuleUnfree {
module = {
config = configuration;
};
checks = {
tests = import ../tests {
inherit pkgs;
inherit (pkgs) lib;
makeNixvim = configuration:
makeNixvimWithModuleUnfree {
module = {
config = configuration;
};
};
};
};

extra-args-tests = import ../tests/extra-args.nix {
inherit pkgs;
inherit makeNixvimWithModule;
};
extra-args-tests = import ../tests/extra-args.nix {
inherit pkgs;
inherit makeNixvimWithModule;
};

lib-tests = import ../tests/lib-tests.nix {
inherit pkgs;
inherit (pkgs) lib;
};
}
# 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;
});
lib-tests = import ../tests/lib-tests.nix {
inherit pkgs;
inherit (pkgs) lib;
};
docs = config.packages.docs ? null;
};
};
}
4 changes: 3 additions & 1 deletion flake-modules/packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
...
}: {
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) {
inherit modules;
};
Expand Down

0 comments on commit 9acb792

Please sign in to comment.