diff --git a/ci/eval/default.nix b/ci/eval/default.nix index 75b2eb9cba5d..23a2d4cb4f72 100644 --- a/ci/eval/default.nix +++ b/ci/eval/default.nix @@ -19,6 +19,15 @@ nix, }: +{ + # The number of attributes per chunk, see ./README.md for more info. + chunkSize ? 5000, + # Whether to just evaluate a single chunk for quick testing + quickTest ? false, + # Don't try to eval packages marked as broken. + includeBroken ? false, +}: + let nixpkgs = with lib.fileset; @@ -79,13 +88,6 @@ let evalSystem ? builtins.currentSystem, # The path to the `paths.json` file from `attrpathsSuperset` attrpathFile ? "${attrpathsSuperset { inherit evalSystem; }}/paths.json", - # The number of attributes per chunk, see ./README.md for more info. - chunkSize ? 5000, - - # Don't try to eval packages marked as broken. - includeBroken ? false, - # Whether to just evaluate a single chunk for quick testing - quickTest ? false, }: let singleChunk = writeShellScript "single-chunk" '' @@ -259,16 +261,13 @@ let { # Whether to evaluate on a specific set of systems, by default all are evaluated evalSystems ? if quickTest then [ "x86_64-linux" ] else supportedSystems, - # The number of attributes per chunk, see ./README.md for more info. - chunkSize ? 5000, - quickTest ? false, }: symlinkJoin { name = "nixpkgs-eval-baseline"; paths = map ( evalSystem: singleSystem { - inherit quickTest evalSystem chunkSize; + inherit evalSystem; } ) evalSystems; }; @@ -277,9 +276,6 @@ let { # Whether to evaluate on a specific set of systems, by default all are evaluated evalSystems ? if quickTest then [ "x86_64-linux" ] else supportedSystems, - # The number of attributes per chunk, see ./README.md for more info. - chunkSize ? 5000, - quickTest ? false, baseline, # Which maintainer should be considered the author? # Defaults to nixpkgs-ci which is not a maintainer and skips the check. @@ -300,7 +296,7 @@ let inherit evalSystem; beforeDir = baseline; afterDir = singleSystem { - inherit quickTest evalSystem chunkSize; + inherit evalSystem; }; } ) evalSystems;