Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 26 lines 798 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 ? [ "x86_64-linux" ] 8, # Attributes passed to nixpkgs. Don't build packages marked as unfree. 9 nixpkgsArgs ? { config = { allowUnfree = false; inHydra = true; }; } 10}: 11 12with import ./release-lib.nix {inherit supportedSystems nixpkgsArgs; }; 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))