2008-11-28 11:56:36 +01:00
|
|
|
let
|
|
|
|
|
|
|
|
allPackages = import ./all-packages.nix;
|
|
|
|
|
2009-03-09 18:49:13 +01:00
|
|
|
pkgs = allPackages {};
|
2008-11-30 19:36:23 +01:00
|
|
|
|
2009-03-10 16:23:27 +01: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 13:54:12 +01:00
|
|
|
testOn = systems: f: {system ? builtins.currentSystem}:
|
2009-03-09 18:49:13 +01:00
|
|
|
if pkgs.lib.elem system systems then f (allPackages {inherit system;}) else {};
|
2008-11-30 19:36:23 +01:00
|
|
|
|
2009-03-10 16:23:27 +01: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"];
|
2008-11-30 19:36:23 +01:00
|
|
|
|
2009-03-09 18:49:13 +01:00
|
|
|
in {
|
2008-11-30 19:36:23 +01:00
|
|
|
|
2009-03-09 18:49:13 +01:00
|
|
|
tarball = import ./make-tarball.nix;
|
2008-11-30 19:36:23 +01:00
|
|
|
|
2009-03-10 16:23:27 +01:00
|
|
|
} // mapTestOn {
|
2009-03-09 18:49:13 +01:00
|
|
|
|
2009-03-10 16:23:27 +01:00
|
|
|
MPlayer = linux;
|
|
|
|
apacheHttpd = linux;
|
|
|
|
autoconf = all;
|
|
|
|
bash = all;
|
2009-03-14 10:44:15 +01:00
|
|
|
bazaar = all;
|
|
|
|
boost = all;
|
|
|
|
eprover = linux;
|
2009-03-10 16:23:27 +01:00
|
|
|
firefox3 = linux;
|
|
|
|
gcc = all;
|
2009-03-14 10:44:15 +01:00
|
|
|
gdb = all;
|
|
|
|
git = all;
|
|
|
|
gnuplot = all;
|
|
|
|
gnuplotX = linux;
|
|
|
|
graphviz = all;
|
2009-03-10 16:23:27 +01:00
|
|
|
hello = all;
|
|
|
|
libsmbios = linux;
|
|
|
|
libtool = all;
|
2009-03-14 10:44:15 +01:00
|
|
|
maxima = all;
|
|
|
|
mercurial = all;
|
|
|
|
monotone = all;
|
|
|
|
mysql = all;
|
|
|
|
octave = all;
|
|
|
|
openoffice = linux;
|
2009-03-10 16:23:27 +01:00
|
|
|
pan = linux;
|
|
|
|
perl = all;
|
2009-03-14 10:44:15 +01:00
|
|
|
pltScheme = linux;
|
|
|
|
postgresql = all;
|
2009-03-10 16:23:27 +01:00
|
|
|
python = all;
|
2009-03-14 10:44:15 +01:00
|
|
|
ruby = all;
|
|
|
|
qt3 = all;
|
|
|
|
qt4 = all;
|
|
|
|
subversion = linux;
|
2009-03-10 16:23:27 +01:00
|
|
|
thunderbird = linux;
|
2009-03-14 10:44:15 +01:00
|
|
|
vimHugeX = all;
|
2009-03-10 16:23:27 +01:00
|
|
|
vlc = linux;
|
2009-03-14 10:44:15 +01:00
|
|
|
webkit = all;
|
2009-03-10 16:23:27 +01:00
|
|
|
wine = ["i686-linux"];
|
2009-03-10 09:01:35 +01:00
|
|
|
|
2009-03-14 10:44:15 +01:00
|
|
|
gtkLibs = {
|
|
|
|
gtk = linux;
|
|
|
|
};
|
|
|
|
|
2009-03-10 09:01:35 +01:00
|
|
|
kde42 = {
|
2009-03-10 16:23:27 +01:00
|
|
|
kdeadmin = linux;
|
|
|
|
kdeartwork = linux;
|
|
|
|
kdebase = linux;
|
|
|
|
kdebase_runtime = linux;
|
|
|
|
kdebase_workspace = linux;
|
|
|
|
kdeedu = linux;
|
|
|
|
kdegames = linux;
|
|
|
|
kdegraphics = linux;
|
|
|
|
kdelibs = linux;
|
|
|
|
kdemultimedia = linux;
|
|
|
|
kdenetwork = linux;
|
|
|
|
kdepim = linux;
|
|
|
|
kdeplasma_addons = linux;
|
|
|
|
kdesdk = linux;
|
|
|
|
kdetoys = linux;
|
|
|
|
kdeutils = linux;
|
|
|
|
kdewebdev = linux;
|
2009-03-10 09:01:35 +01:00
|
|
|
};
|
2009-03-10 10:05:43 +01:00
|
|
|
|
|
|
|
kernelPackages_2_6_27 = {
|
2009-03-10 16:23:27 +01:00
|
|
|
aufs = linux;
|
|
|
|
kernel = linux;
|
2009-03-10 10:05:43 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
kernelPackages_2_6_28 = {
|
2009-03-10 16:23:27 +01:00
|
|
|
aufs = linux;
|
|
|
|
kernel = linux;
|
2009-03-10 10:05:43 +01:00
|
|
|
};
|
2009-03-09 18:49:13 +01:00
|
|
|
|
2009-03-10 16:23:27 +01:00
|
|
|
xorg = {
|
|
|
|
libX11 = linux;
|
|
|
|
};
|
|
|
|
|
2009-03-09 18:49:13 +01:00
|
|
|
}
|