at 22.05-pre 29 lines 824 B view raw
1/* 2 test for example like this 3 $ hydra-eval-jobs pkgs/top-level/release-python.nix 4*/ 5 6{ # The platforms for which we build Nixpkgs. 7 supportedSystems ? [ 8 "aarch64-linux" 9 "x86_64-linux" 10 ] 11, # Attributes passed to nixpkgs. Don't build packages marked as unfree. 12 nixpkgsArgs ? { config = { allowUnfree = false; inHydra = true; }; } 13}: 14 15with import ./release-lib.nix {inherit supportedSystems nixpkgsArgs; }; 16with lib; 17 18let 19 packagePython = mapAttrs (name: value: 20 let res = builtins.tryEval ( 21 if isDerivation value then 22 value.meta.isBuildPythonPackage or [] 23 else if value.recurseForDerivations or false || value.recurseForRelease or false then 24 packagePython value 25 else 26 []); 27 in if res.success then res.value else [] 28 ); 29in (mapTestOn (packagePython pkgs))