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 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 {};
|
|
|
|
|
|
|
|
testOnLinux = testOn ["i686-linux" "x86_64-linux"];
|
2008-11-30 18:36:23 +00:00
|
|
|
|
2009-03-09 17:49:13 +00:00
|
|
|
test = testOn ["i686-linux" "x86_64-linux" "i686-darwin" "i686-cygwin"];
|
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-09 17:49:13 +00:00
|
|
|
/* All the top-level packages that we want to build in the build
|
|
|
|
farm. The notation is still kinda clumsy. We could use some
|
|
|
|
meta-programming. E.g. we would want to write
|
|
|
|
|
|
|
|
wine = ["i686-linux"];
|
|
|
|
|
|
|
|
which would be translated to
|
|
|
|
|
|
|
|
wine = testOn ["i686-linux"] (pkgs: pkgs.wine);
|
|
|
|
|
|
|
|
Shouldn't be too hard to make a function that recurses over the
|
|
|
|
attrset and does this for every attribute. */
|
|
|
|
|
|
|
|
MPlayer = testOnLinux (pkgs: pkgs.MPlayer);
|
|
|
|
autoconf = test (pkgs: pkgs.autoconf);
|
|
|
|
bash = test (pkgs: pkgs.bash);
|
|
|
|
firefox3 = testOnLinux (pkgs: pkgs.firefox3);
|
|
|
|
gcc = test (pkgs: pkgs.gcc);
|
|
|
|
hello = test (pkgs: pkgs.hello);
|
|
|
|
libsmbios = testOnLinux (pkgs: pkgs.libsmbios);
|
|
|
|
libtool = test (pkgs: pkgs.libtool);
|
|
|
|
pan = testOnLinux (pkgs: pkgs.pan);
|
|
|
|
perl = test (pkgs: pkgs.perl);
|
|
|
|
python = test (pkgs: pkgs.python);
|
|
|
|
thunderbird = testOnLinux (pkgs: pkgs.thunderbird);
|
|
|
|
wine = testOn ["i686-linux"] (pkgs: pkgs.wine);
|
|
|
|
|
|
|
|
xorg = {
|
|
|
|
libX11 = testOnLinux (pkgs: pkgs.xorg.libX11);
|
2008-11-28 10:56:36 +00:00
|
|
|
};
|
2009-03-10 08:01:35 +00:00
|
|
|
|
|
|
|
kde42 = {
|
2009-03-10 12:34:12 +00:00
|
|
|
kdeadmin = testOnLinux (pkgs: pkgs.kde42.kdeadmin);
|
|
|
|
kdeartwork = testOnLinux (pkgs: pkgs.kde42.kdeartwork);
|
2009-03-10 08:01:35 +00:00
|
|
|
kdebase = testOnLinux (pkgs: pkgs.kde42.kdebase);
|
2009-03-10 12:34:12 +00:00
|
|
|
kdebase_runtime = testOnLinux (pkgs: pkgs.kde42.kdebase_runtime);
|
|
|
|
kdebase_workspace = testOnLinux (pkgs: pkgs.kde42.kdebase_workspace);
|
|
|
|
kdeedu = testOnLinux (pkgs: pkgs.kde42.kdeedu);
|
2009-03-10 08:01:35 +00:00
|
|
|
kdegames = testOnLinux (pkgs: pkgs.kde42.kdegames);
|
2009-03-10 12:34:12 +00:00
|
|
|
kdegraphics = testOnLinux (pkgs: pkgs.kde42.kdegraphics);
|
2009-03-10 12:54:12 +00:00
|
|
|
kdelibs = testOnLinux (pkgs: pkgs.kde42.kdelibs);
|
2009-03-10 12:34:12 +00:00
|
|
|
kdemultimedia = testOnLinux (pkgs: pkgs.kde42.kdemultimedia);
|
|
|
|
kdenetwork = testOnLinux (pkgs: pkgs.kde42.kdenetwork);
|
2009-03-10 08:01:35 +00:00
|
|
|
kdepim = testOnLinux (pkgs: pkgs.kde42.kdepim);
|
2009-03-10 12:34:12 +00:00
|
|
|
kdeplasma_addons = testOnLinux (pkgs: pkgs.kde42.kdeplasma_addons);
|
|
|
|
kdesdk = testOnLinux (pkgs: pkgs.kde42.kdesdk);
|
|
|
|
kdetoys = testOnLinux (pkgs: pkgs.kde42.kdetoys);
|
|
|
|
kdeutils = testOnLinux (pkgs: pkgs.kde42.kdeutils);
|
|
|
|
kdewebdev = testOnLinux (pkgs: pkgs.kde42.kdewebdev);
|
2009-03-10 08:01:35 +00:00
|
|
|
};
|
2009-03-10 09:05:43 +00:00
|
|
|
|
|
|
|
kernelPackages_2_6_27 = {
|
|
|
|
aufs = testOnLinux (pkgs: pkgs.kernelPackages_2_6_27.aufs);
|
|
|
|
kernel = testOnLinux (pkgs: pkgs.kernelPackages_2_6_27.kernel);
|
|
|
|
};
|
|
|
|
|
|
|
|
kernelPackages_2_6_28 = {
|
|
|
|
aufs = testOnLinux (pkgs: pkgs.kernelPackages_2_6_28.aufs);
|
|
|
|
kernel = testOnLinux (pkgs: pkgs.kernelPackages_2_6_28.kernel);
|
|
|
|
};
|
2009-03-09 17:49:13 +00:00
|
|
|
|
|
|
|
}
|