at v206 3.9 kB view raw
1/* 2 test for example like this 3 $ nix-build pkgs/top-level/release-python.nix 4*/ 5 6{ nixpkgs ? { outPath = (import ./all-packages.nix {}).lib.cleanSource ../..; revCount = 1234; shortRev = "abcdef"; } 7, officialRelease ? false 8, # The platforms for which we build Nixpkgs. 9 supportedSystems ? [ "x86_64-linux" "i686-linux" "x86_64-darwin" "x86_64-freebsd" "i686-freebsd" ] 10}: 11 12with import ./release-lib.nix {inherit supportedSystems; }; 13 14let 15 jobsForDerivations = attrset: pkgs.lib.attrsets.listToAttrs 16 (map 17 (name: { inherit name; 18 value = { type = "job"; systems = ["x86_64-linux"]; schedulingPriority = 4; };}) 19 (builtins.attrNames 20 (pkgs.lib.attrsets.filterAttrs 21 (n: v: (v.type or null) == "derivation") 22 attrset))); 23 24 25 jobs = 26 { 27 28 # } // (mapTestOn ((packagesWithMetaPlatform pkgs) // rec { 29 30 } // (mapTestOn rec { 31 32 offlineimap = { type = "job"; systems = ["x86_64-linux"]; schedulingPriority = 4; }; 33 pycairo = { type = "job"; systems = ["x86_64-linux"]; schedulingPriority = 4; }; 34 pycrypto = { type = "job"; systems = ["x86_64-linux"]; schedulingPriority = 4; }; 35 pycups = { type = "job"; systems = ["x86_64-linux"]; schedulingPriority = 4; }; 36 pydb = { type = "job"; systems = ["x86_64-linux"]; schedulingPriority = 4; }; 37 pyexiv2 = { type = "job"; systems = ["x86_64-linux"]; schedulingPriority = 4; }; 38 pygame = { type = "job"; systems = ["x86_64-linux"]; schedulingPriority = 4; }; 39 pygobject = { type = "job"; systems = ["x86_64-linux"]; schedulingPriority = 4; }; 40 pygtk = { type = "job"; systems = ["x86_64-linux"]; schedulingPriority = 4; }; 41 pygtksourceview = { type = "job"; systems = ["x86_64-linux"]; schedulingPriority = 4; }; 42 pyGtkGlade = { type = "job"; systems = ["x86_64-linux"]; schedulingPriority = 4; }; 43 pyIRCt = { type = "job"; systems = ["x86_64-linux"]; schedulingPriority = 4; }; 44 pyMAILt = { type = "job"; systems = ["x86_64-linux"]; schedulingPriority = 4; }; 45 pyopenssl = { type = "job"; systems = ["x86_64-linux"]; schedulingPriority = 4; }; 46 pyqt4 = { type = "job"; systems = ["x86_64-linux"]; schedulingPriority = 4; }; 47 pyrex = { type = "job"; systems = ["x86_64-linux"]; schedulingPriority = 4; }; 48 pyrex096 = { type = "job"; systems = ["x86_64-linux"]; schedulingPriority = 4; }; 49 pyside = { type = "job"; systems = ["x86_64-linux"]; schedulingPriority = 4; }; 50 pysideApiextractor = { type = "job"; systems = ["x86_64-linux"]; schedulingPriority = 4; }; 51 pysideGeneratorrunner = { type = "job"; systems = ["x86_64-linux"]; schedulingPriority = 4; }; 52 pysideShiboken = { type = "job"; systems = ["x86_64-linux"]; schedulingPriority = 4; }; 53 pysideTools = { type = "job"; systems = ["x86_64-linux"]; schedulingPriority = 4; }; 54 pystringtemplate = { type = "job"; systems = ["x86_64-linux"]; schedulingPriority = 4; }; 55 python26 = { type = "job"; systems = ["x86_64-linux"]; schedulingPriority = 4; }; 56 python27 = { type = "job"; systems = ["x86_64-linux"]; schedulingPriority = 4; }; 57 python26Full = { type = "job"; systems = ["x86_64-linux"]; schedulingPriority = 4; }; 58 python27Full = { type = "job"; systems = ["x86_64-linux"]; schedulingPriority = 4; }; 59 python26Packages = jobsForDerivations pkgs.python26Packages; 60 python27Packages = jobsForDerivations pkgs.python27Packages; 61 python3 = { type = "job"; systems = ["x86_64-linux"]; schedulingPriority = 4; }; 62 pythonDBus = { type = "job"; systems = ["x86_64-linux"]; schedulingPriority = 4; }; 63 pythonIRClib = { type = "job"; systems = ["x86_64-linux"]; schedulingPriority = 4; }; 64 pythonmagick = { type = "job"; systems = ["x86_64-linux"]; schedulingPriority = 4; }; 65 pythonSexy = { type = "job"; systems = ["x86_64-linux"]; schedulingPriority = 4; }; 66 pyx = { type = "job"; systems = ["x86_64-linux"]; schedulingPriority = 4; }; 67 pyxml = { type = "job"; systems = ["x86_64-linux"]; schedulingPriority = 4; }; 68}); 69 70in jobs