| 
									
										
										
										
											2008-11-28 10:56:36 +00:00
										 |  |  | let | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   allPackages = import ./all-packages.nix; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-03-09 17:49:13 +00:00
										 |  |  |   pkgs = allPackages {}; | 
					
						
							| 
									
										
										
										
											2008-11-30 18:36:23 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-03-10 15:23:27 +00:00
										 |  |  |   /* Perform a job on the given set of platforms.  The function `f' is
 | 
					
						
							|  |  |  |      called by Hydra for each platform, and should return some job | 
					
						
							|  |  |  |      to build on that platform.  `f' is passed the Nixpkgs collection | 
					
						
							|  |  |  |      for the platform in question. */ | 
					
						
							| 
									
										
										
										
											2009-03-10 12:54:12 +00:00
										 |  |  |   testOn = systems: f: {system ? builtins.currentSystem}: | 
					
						
							| 
									
										
										
										
											2009-03-09 17:49:13 +00:00
										 |  |  |     if pkgs.lib.elem system systems then f (allPackages {inherit system;}) else {}; | 
					
						
							| 
									
										
										
										
											2008-11-30 18:36:23 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-03-10 15:23:27 +00:00
										 |  |  |   /* Map an attribute of the form `foo = [platforms...]'  to `testOn
 | 
					
						
							|  |  |  |      [platforms...] (pkgs: pkgs.foo)'. */ | 
					
						
							|  |  |  |   mapTestOn = pkgs.lib.mapAttrsRecursive | 
					
						
							|  |  |  |     (path: value: testOn value (pkgs: pkgs.lib.getAttrFromPath path pkgs)); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   /* Common platform groups on which to test packages. */ | 
					
						
							|  |  |  |   all = ["i686-linux" "x86_64-linux" "i686-darwin" "i686-cygwin"]; | 
					
						
							|  |  |  |   linux = ["i686-linux" "x86_64-linux"]; | 
					
						
							| 
									
										
										
										
											2009-03-14 21:43:09 +00:00
										 |  |  |   allBut = (platform: pkgs.lib.filter (x: platform != x) all); | 
					
						
							| 
									
										
										
										
											2008-11-30 18:36:23 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-03-09 17:49:13 +00:00
										 |  |  | in { | 
					
						
							| 
									
										
										
										
											2008-11-30 18:36:23 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-03-09 17:49:13 +00:00
										 |  |  |   tarball = import ./make-tarball.nix; | 
					
						
							| 
									
										
										
										
											2008-11-30 18:36:23 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-03-10 15:23:27 +00:00
										 |  |  | } // mapTestOn { | 
					
						
							| 
									
										
										
										
											2009-03-09 17:49:13 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-03-10 15:23:27 +00:00
										 |  |  |   MPlayer = linux; | 
					
						
							|  |  |  |   apacheHttpd = linux; | 
					
						
							| 
									
										
										
										
											2009-03-14 23:19:49 +00:00
										 |  |  |   at = linux; | 
					
						
							| 
									
										
										
										
											2009-03-10 15:23:27 +00:00
										 |  |  |   autoconf = all; | 
					
						
							| 
									
										
										
										
											2009-03-14 21:43:37 +00:00
										 |  |  |   avahi = allBut "i686-cygwin";  # Cygwin builds fail | 
					
						
							| 
									
										
										
										
											2009-03-10 15:23:27 +00:00
										 |  |  |   bash = all; | 
					
						
							| 
									
										
										
										
											2009-03-17 12:29:34 +00:00
										 |  |  |   bazaar = linux; # first let sqlite3 work on darwin | 
					
						
							|  |  |  |   bitlbee = linux;  | 
					
						
							| 
									
										
										
										
											2009-03-14 09:44:15 +00:00
										 |  |  |   boost = all; | 
					
						
							| 
									
										
										
										
											2009-03-14 15:32:39 +00:00
										 |  |  |   cdrkit = linux; | 
					
						
							| 
									
										
										
										
											2009-03-17 12:29:34 +00:00
										 |  |  |   cedet = linux; | 
					
						
							| 
									
										
										
										
											2009-03-14 15:32:39 +00:00
										 |  |  |   emacs22 = all; | 
					
						
							|  |  |  |   emacsUnicode = all; | 
					
						
							| 
									
										
										
										
											2009-03-17 06:16:10 +00:00
										 |  |  |   emms = linux; | 
					
						
							| 
									
										
										
										
											2009-03-14 09:44:15 +00:00
										 |  |  |   eprover = linux; | 
					
						
							| 
									
										
										
										
											2009-03-17 06:16:10 +00:00
										 |  |  |   evince = linux; | 
					
						
							| 
									
										
										
										
											2009-03-10 15:23:27 +00:00
										 |  |  |   firefox3 = linux; | 
					
						
							|  |  |  |   gcc = all; | 
					
						
							| 
									
										
										
										
											2009-03-14 09:44:15 +00:00
										 |  |  |   gdb = all; | 
					
						
							| 
									
										
										
										
											2009-03-17 12:29:34 +00:00
										 |  |  |   ghostscript = linux; | 
					
						
							|  |  |  |   ghostscriptX = linux; | 
					
						
							| 
									
										
										
										
											2009-03-17 06:16:10 +00:00
										 |  |  |   git = linux; | 
					
						
							| 
									
										
										
										
											2009-03-17 12:29:34 +00:00
										 |  |  |   gnuplot = allBut "i686-cygwin"; | 
					
						
							| 
									
										
										
										
											2009-03-14 09:44:15 +00:00
										 |  |  |   gnuplotX = linux; | 
					
						
							| 
									
										
										
										
											2009-03-17 12:29:34 +00:00
										 |  |  |   gnutls = linux; | 
					
						
							| 
									
										
										
										
											2009-03-14 09:44:15 +00:00
										 |  |  |   graphviz = all; | 
					
						
							| 
									
										
										
										
											2009-03-14 19:40:29 +00:00
										 |  |  |   guile = linux;  # tests fail on Cygwin | 
					
						
							|  |  |  |   guileLib = linux; | 
					
						
							| 
									
										
										
										
											2009-03-10 15:23:27 +00:00
										 |  |  |   hello = all; | 
					
						
							| 
									
										
										
										
											2009-03-14 15:32:39 +00:00
										 |  |  |   icecat3Xul = [ "i686-linux" ]; | 
					
						
							|  |  |  |   idutils = all; | 
					
						
							| 
									
										
										
										
											2009-03-17 12:29:34 +00:00
										 |  |  |   imagemagick = allBut "i686-cygwin"; | 
					
						
							| 
									
										
										
										
											2009-03-14 15:32:39 +00:00
										 |  |  |   inetutils = linux; | 
					
						
							| 
									
										
										
										
											2009-03-16 10:19:38 +00:00
										 |  |  |   inkscape = linux; | 
					
						
							| 
									
										
										
										
											2009-03-14 23:29:33 +00:00
										 |  |  |   jnettop = linux; | 
					
						
							| 
									
										
										
										
											2009-03-16 10:19:38 +00:00
										 |  |  |   kernel_2_6_28 = linux; | 
					
						
							| 
									
										
										
										
											2009-03-10 15:23:27 +00:00
										 |  |  |   libsmbios = linux; | 
					
						
							|  |  |  |   libtool = all; | 
					
						
							| 
									
										
										
										
											2009-03-16 10:45:55 +00:00
										 |  |  |   lout = linux; | 
					
						
							| 
									
										
										
										
											2009-03-14 23:19:49 +00:00
										 |  |  |   lsh = linux; | 
					
						
							| 
									
										
										
										
											2009-03-14 23:29:33 +00:00
										 |  |  |   manpages = all; | 
					
						
							| 
									
										
										
										
											2009-03-17 12:29:34 +00:00
										 |  |  |   maxima = linux; | 
					
						
							|  |  |  |   mercurial = allBut "i686-cygwin"; | 
					
						
							| 
									
										
										
										
											2009-03-16 10:19:38 +00:00
										 |  |  |   mesa = linux; | 
					
						
							| 
									
										
										
										
											2009-03-17 12:29:34 +00:00
										 |  |  |   monotone = linux; | 
					
						
							|  |  |  |   mysql = linux; | 
					
						
							|  |  |  |   nano = allBut "i686-cygwin"; | 
					
						
							| 
									
										
										
										
											2009-03-14 15:32:39 +00:00
										 |  |  |   nssmdns = linux; | 
					
						
							| 
									
										
										
										
											2009-03-16 10:19:38 +00:00
										 |  |  |   ntfs3g = linux; | 
					
						
							| 
									
										
										
										
											2009-03-17 06:16:10 +00:00
										 |  |  |   octave = linux; | 
					
						
							| 
									
										
										
										
											2009-03-14 09:44:15 +00:00
										 |  |  |   openoffice = linux; | 
					
						
							| 
									
										
										
										
											2009-03-17 12:29:34 +00:00
										 |  |  |   openssh = linux; | 
					
						
							| 
									
										
										
										
											2009-03-10 15:23:27 +00:00
										 |  |  |   pan = linux; | 
					
						
							|  |  |  |   perl = all; | 
					
						
							| 
									
										
										
										
											2009-03-17 06:16:10 +00:00
										 |  |  |   pidgin = linux; | 
					
						
							| 
									
										
										
										
											2009-03-14 09:44:15 +00:00
										 |  |  |   pltScheme = linux; | 
					
						
							| 
									
										
										
										
											2009-03-17 12:29:34 +00:00
										 |  |  |   pmccabe = linux; | 
					
						
							| 
									
										
										
										
											2009-03-14 23:19:49 +00:00
										 |  |  |   portmap = linux; | 
					
						
							| 
									
										
										
										
											2009-03-14 09:44:15 +00:00
										 |  |  |   postgresql = all; | 
					
						
							| 
									
										
										
										
											2009-03-17 12:29:34 +00:00
										 |  |  |   python = allBut "i686-cygwin"; | 
					
						
							| 
									
										
										
										
											2009-03-16 10:19:38 +00:00
										 |  |  |   pythonFull = linux; | 
					
						
							| 
									
										
										
										
											2009-03-17 12:29:34 +00:00
										 |  |  |   rubber = allBut "i686-cygwin"; | 
					
						
							| 
									
										
										
										
											2009-03-14 09:44:15 +00:00
										 |  |  |   ruby = all; | 
					
						
							| 
									
										
										
										
											2009-03-17 12:29:34 +00:00
										 |  |  |   qt3 = allBut "i686-cygwin"; | 
					
						
							| 
									
										
										
										
											2009-03-17 06:16:10 +00:00
										 |  |  |   qt4 = linux; | 
					
						
							| 
									
										
										
										
											2009-03-17 12:29:34 +00:00
										 |  |  |   rsync = linux; | 
					
						
							|  |  |  |   sloccount = allBut "i686-cygwin"; | 
					
						
							|  |  |  |   sqlite3 = allBut "i686-cygwin"; | 
					
						
							| 
									
										
										
										
											2009-03-14 23:29:33 +00:00
										 |  |  |   strace = linux; | 
					
						
							| 
									
										
										
										
											2009-03-14 09:44:15 +00:00
										 |  |  |   subversion = linux; | 
					
						
							| 
									
										
										
										
											2009-03-14 23:29:33 +00:00
										 |  |  |   tcpdump = linux; | 
					
						
							| 
									
										
										
										
											2009-03-16 10:45:55 +00:00
										 |  |  |   texinfo = all; | 
					
						
							|  |  |  |   texLive = linux; | 
					
						
							| 
									
										
										
										
											2009-03-10 15:23:27 +00:00
										 |  |  |   thunderbird = linux; | 
					
						
							| 
									
										
										
										
											2009-03-17 12:29:34 +00:00
										 |  |  |   vimHugeX = linux; | 
					
						
							| 
									
										
										
										
											2009-03-10 15:23:27 +00:00
										 |  |  |   vlc = linux; | 
					
						
							| 
									
										
										
										
											2009-03-17 12:29:34 +00:00
										 |  |  |   webkit = linux; | 
					
						
							| 
									
										
										
										
											2009-03-10 15:23:27 +00:00
										 |  |  |   wine = ["i686-linux"]; | 
					
						
							| 
									
										
										
										
											2009-03-14 23:29:33 +00:00
										 |  |  |   wirelesstools = linux; | 
					
						
							|  |  |  |   xlockmore = linux; | 
					
						
							|  |  |  |   xpdf = linux; | 
					
						
							| 
									
										
										
										
											2009-03-14 23:19:49 +00:00
										 |  |  |   zile = linux; | 
					
						
							| 
									
										
										
										
											2009-03-10 08:01:35 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-03-14 09:44:15 +00:00
										 |  |  |   gtkLibs = { | 
					
						
							|  |  |  |     gtk = linux; | 
					
						
							|  |  |  |   }; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-03-10 08:01:35 +00:00
										 |  |  |   kde42 = { | 
					
						
							| 
									
										
										
										
											2009-03-10 15:23:27 +00:00
										 |  |  |     kdeadmin = linux; | 
					
						
							|  |  |  |     kdeartwork = linux; | 
					
						
							|  |  |  |     kdebase = linux; | 
					
						
							|  |  |  |     kdebase_runtime = linux; | 
					
						
							|  |  |  |     kdebase_workspace = linux; | 
					
						
							|  |  |  |     kdeedu = linux; | 
					
						
							| 
									
										
										
										
											2009-03-14 15:41:20 +00:00
										 |  |  |     kdegames = linux; | 
					
						
							| 
									
										
										
										
											2009-03-10 15:23:27 +00:00
										 |  |  |     kdegraphics = linux; | 
					
						
							|  |  |  |     kdelibs = linux; | 
					
						
							|  |  |  |     kdemultimedia = linux; | 
					
						
							|  |  |  |     kdenetwork = linux; | 
					
						
							|  |  |  |     kdepim = linux; | 
					
						
							|  |  |  |     kdeplasma_addons = linux; | 
					
						
							|  |  |  |     kdesdk = linux; | 
					
						
							|  |  |  |     kdetoys = linux; | 
					
						
							|  |  |  |     kdeutils = linux; | 
					
						
							|  |  |  |     kdewebdev = linux; | 
					
						
							| 
									
										
										
										
											2009-03-10 08:01:35 +00:00
										 |  |  |   }; | 
					
						
							| 
									
										
										
										
											2009-03-10 09:05:43 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  |   kernelPackages_2_6_27 = { | 
					
						
							| 
									
										
										
										
											2009-03-17 12:29:34 +00:00
										 |  |  |     # aufs = linux; # kernel seems to be too old for that package  | 
					
						
							| 
									
										
										
										
											2009-03-10 15:23:27 +00:00
										 |  |  |     kernel = linux; | 
					
						
							| 
									
										
										
										
											2009-03-10 09:05:43 +00:00
										 |  |  |   }; | 
					
						
							|  |  |  |    | 
					
						
							|  |  |  |   kernelPackages_2_6_28 = { | 
					
						
							| 
									
										
										
										
											2009-03-10 15:23:27 +00:00
										 |  |  |     aufs = linux; | 
					
						
							|  |  |  |     kernel = linux; | 
					
						
							| 
									
										
										
										
											2009-03-10 09:05:43 +00:00
										 |  |  |   }; | 
					
						
							| 
									
										
										
										
											2009-03-09 17:49:13 +00:00
										 |  |  |    | 
					
						
							| 
									
										
										
										
											2009-03-10 15:23:27 +00:00
										 |  |  |   xorg = { | 
					
						
							|  |  |  |     libX11 = linux; | 
					
						
							| 
									
										
										
										
											2009-03-16 10:19:38 +00:00
										 |  |  |     xorgserver = linux; | 
					
						
							| 
									
										
										
										
											2009-03-10 15:23:27 +00:00
										 |  |  |   }; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-03-09 17:49:13 +00:00
										 |  |  | } |