1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-20 04:31:52 +00:00
nixpkgs/pkgs/top-level/release.nix
Eelco Dolstra c94f5f7862 * Put the tarball job in a separate file.
svn path=/nixpkgs/trunk/; revision=14476
2009-03-09 17:49:13 +00:00

50 lines
1.4 KiB
Nix

let
allPackages = import ./all-packages.nix;
pkgs = allPackages {};
testOn = systems: f: {system}:
if pkgs.lib.elem system systems then f (allPackages {inherit system;}) else {};
testOnLinux = testOn ["i686-linux" "x86_64-linux"];
test = testOn ["i686-linux" "x86_64-linux" "i686-darwin" "i686-cygwin"];
in {
tarball = import ./make-tarball.nix;
/* 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);
};
}