at 17.09-beta 26 lines 770 B view raw
1/* 2 test for example like this 3 $ hydra-eval-jobs pkgs/top-level/release-python.nix 4*/ 5 6{ nixpkgs ? { outPath = (import ../../lib).cleanSource ../..; revCount = 1234; shortRev = "abcdef"; } 7, officialRelease ? false 8, # The platforms for which we build Nixpkgs. 9 supportedSystems ? [ "x86_64-linux" ] 10}: 11 12with import ./release-lib.nix {inherit supportedSystems; }; 13with lib; 14 15let 16 packagePython = mapAttrs (name: value: 17 let res = builtins.tryEval ( 18 if isDerivation value then 19 value.meta.isBuildPythonPackage or [] 20 else if value.recurseForDerivations or false || value.recurseForRelease or false then 21 packagePython value 22 else 23 []); 24 in if res.success then res.value else [] 25 ); 26in (mapTestOn (packagePython pkgs))