mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 23:52:33 +00:00
2773c38d33
seems to work fine on Linux 2.6.28. svn path=/nixpkgs/trunk/; revision=15060
410 lines
8.5 KiB
Nix
410 lines
8.5 KiB
Nix
let
|
|
|
|
allPackages = import ./all-packages.nix;
|
|
|
|
pkgs = allPackages {};
|
|
|
|
/* Set the Hydra scheduling priority for a job. The default
|
|
priority (100) should be used for most jobs. A different
|
|
priority should only be used for a few particularly interesting
|
|
jobs (in terms of giving feedback to developers), such as stdenv.
|
|
*/
|
|
prio = level: job: toJob job // { schedulingPriority = level; };
|
|
|
|
toJob = x: if builtins.isAttrs x then x else
|
|
{ type = "job"; systems = x; schedulingPriority = 20; };
|
|
|
|
/* 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. */
|
|
testOn = systems: f: {system ? builtins.currentSystem}:
|
|
if pkgs.lib.elem system systems then f (allPackages {inherit system;}) else {};
|
|
|
|
/* Map an attribute of the form `foo = [platforms...]' to `testOn
|
|
[platforms...] (pkgs: pkgs.foo)'. */
|
|
mapTestOn = pkgs.lib.mapAttrsRecursiveCond
|
|
(as: !(as ? type && as.type == "job"))
|
|
(path: value:
|
|
let
|
|
job = toJob value;
|
|
getPkg = pkgs:
|
|
pkgs.lib.addMetaAttrs { schedulingPriority = toString job.schedulingPriority; }
|
|
(pkgs.lib.getAttrFromPath path pkgs);
|
|
in testOn job.systems getPkg);
|
|
|
|
/* Common platform groups on which to test packages. */
|
|
linux = ["i686-linux" "x86_64-linux"];
|
|
darwin = ["i686-darwin"];
|
|
cygwin = ["i686-cygwin"];
|
|
all = linux ++ darwin ++ cygwin;
|
|
allBut = platform: pkgs.lib.filter (x: platform != x) all;
|
|
|
|
/* Platform groups for specific kinds of applications. */
|
|
x11Supported = linux;
|
|
gtkSupported = linux;
|
|
ghcSupported = linux ++ darwin;
|
|
|
|
in {
|
|
|
|
tarball = import ./make-tarball.nix;
|
|
|
|
} // mapTestOn {
|
|
|
|
MPlayer = linux;
|
|
abcde = linux;
|
|
alsaUtils = linux;
|
|
apacheHttpd = linux;
|
|
aspell = all;
|
|
at = linux;
|
|
aterm25 = all;
|
|
aterm28 = all;
|
|
audacious = linux;
|
|
audacious_plugins = linux;
|
|
autoconf = all;
|
|
automake110x = all;
|
|
automake19x = all;
|
|
avahi = allBut "i686-cygwin"; # Cygwin builds fail
|
|
bash = all;
|
|
bashInteractive = all;
|
|
bazaar = linux; # first let sqlite3 work on darwin
|
|
binutils = linux;
|
|
bison23 = all;
|
|
bison24 = all;
|
|
bitlbee = linux;
|
|
bittorrent = linux;
|
|
boost = all;
|
|
boostFull = all;
|
|
bsdiff = all;
|
|
bzip2 = all;
|
|
cabextract = all;
|
|
castleCombat = linux;
|
|
cdrkit = linux;
|
|
cedet = linux;
|
|
chatzilla = linux;
|
|
cksfv = all;
|
|
compiz = linux;
|
|
coreutils = all;
|
|
cpio = all;
|
|
cron = linux;
|
|
cups = linux;
|
|
db4 = all;
|
|
dhcp = linux;
|
|
dico = linux;
|
|
dietlibc = linux;
|
|
diffutils = all;
|
|
docbook5 = all;
|
|
docbook5_xsl = all;
|
|
docbook_xml_dtd_42 = all;
|
|
docbook_xml_dtd_43 = all;
|
|
docbook_xsl = all;
|
|
doxygen = linux;
|
|
e2fsprogs = linux;
|
|
emacs22 = all;
|
|
emacsUnicode = all;
|
|
emms = linux;
|
|
enscript = all;
|
|
eprover = linux;
|
|
evince = linux;
|
|
expect = linux;
|
|
exult = linux;
|
|
feh = linux;
|
|
file = all;
|
|
findutils = all;
|
|
firefox2 = linux;
|
|
firefox3 = prio 150 linux;
|
|
flex = all;
|
|
flex2535 = all;
|
|
gawk = all;
|
|
gcc = all;
|
|
gcc33 = linux;
|
|
gcc34 = linux;
|
|
gcc43multi = ["x86_64-linux"];
|
|
gdb = all;
|
|
ghc = ghcSupported;
|
|
ghostscript = linux;
|
|
ghostscriptX = linux;
|
|
gimp = linux;
|
|
git = linux;
|
|
gnash = linux;
|
|
gnugrep = all;
|
|
gnum4 = all;
|
|
gnumake = all;
|
|
gnupatch = all;
|
|
gnupg2 = linux;
|
|
gnuplot = allBut "i686-cygwin";
|
|
gnuplotX = linux;
|
|
gnused = all;
|
|
gnutar = all;
|
|
gnutls = linux;
|
|
gphoto2 = linux;
|
|
gprolog = linux;
|
|
gqview = gtkSupported;
|
|
graphviz = all;
|
|
grub = linux;
|
|
gsl = linux;
|
|
guile = linux; # tests fail on Cygwin
|
|
guileLib = linux;
|
|
gv = linux;
|
|
gzip = all;
|
|
hal = linux;
|
|
hello = all;
|
|
host = linux;
|
|
iana_etc = linux;
|
|
icecat3Xul = [ "i686-linux" ];
|
|
idutils = all;
|
|
imagemagick = allBut "i686-cygwin";
|
|
impressive = linux;
|
|
inetutils = linux;
|
|
inkscape = linux;
|
|
iputils = linux;
|
|
irssi = linux;
|
|
jnettop = linux;
|
|
jwhois = linux;
|
|
kbd = linux;
|
|
kcachegrind = linux;
|
|
keen4 = ["i686-linux"];
|
|
kile = linux;
|
|
klibc = linux;
|
|
konversation = linux;
|
|
ktorrent = linux;
|
|
kvm = linux;
|
|
less = all;
|
|
lftp = all;
|
|
lhs2tex = ghcSupported;
|
|
libsmbios = linux;
|
|
libtool = all;
|
|
libtool2 = all;
|
|
libxml2 = all;
|
|
libxslt = all;
|
|
lout = linux;
|
|
lsh = linux;
|
|
lvm2 = linux;
|
|
man = linux;
|
|
manpages = linux;
|
|
maxima = linux;
|
|
mc = all;
|
|
mcron = linux;
|
|
mdadm = linux;
|
|
mercurial = allBut "i686-cygwin";
|
|
mesa = linux;
|
|
mingetty = linux;
|
|
mk = linux;
|
|
mktemp = all;
|
|
mod_python = linux;
|
|
module_init_tools = linux;
|
|
mono = linux;
|
|
monotone = linux;
|
|
mpg321 = linux;
|
|
mysql = linux;
|
|
nano = allBut "i686-cygwin";
|
|
netcat = all;
|
|
nfsUtils = linux;
|
|
nix = all;
|
|
nixUnstable = all;
|
|
nss_ldap = linux;
|
|
nssmdns = linux;
|
|
ntfs3g = linux;
|
|
ntp = linux;
|
|
nxml = all;
|
|
octave = linux;
|
|
openoffice = linux;
|
|
openssh = linux;
|
|
openssl = all;
|
|
pam_console = linux;
|
|
pam_ldap = linux;
|
|
pam_login = linux;
|
|
pam_unix2 = linux;
|
|
pan = gtkSupported;
|
|
par2cmdline = all;
|
|
pciutils = linux;
|
|
perl = all;
|
|
perlTaskCatalystTutorial = linux;
|
|
php = linux;
|
|
pidgin = linux;
|
|
pinentry = linux;
|
|
pkgconfig = all;
|
|
pltScheme = linux;
|
|
pmccabe = linux;
|
|
portmap = linux;
|
|
postgresql = all;
|
|
procps = linux;
|
|
pthreadmanpages = all;
|
|
python = allBut "i686-cygwin";
|
|
pythonFull = linux;
|
|
qt3 = allBut "i686-cygwin";
|
|
qt4 = linux;
|
|
quake3demo = linux;
|
|
readline = all;
|
|
reiserfsprogs = linux;
|
|
rogue = all;
|
|
rpm = linux;
|
|
rsync = linux;
|
|
rubber = allBut "i686-cygwin";
|
|
ruby = all;
|
|
screen = linux ++ darwin;
|
|
seccure = linux;
|
|
slim = linux;
|
|
sloccount = allBut "i686-cygwin";
|
|
spidermonkey = linux;
|
|
splashutils_13 = linux;
|
|
splashutils_15 = linux;
|
|
sqlite = allBut "i686-cygwin";
|
|
ssmtp = linux;
|
|
stdenv = prio 175 all;
|
|
strace = linux;
|
|
su = linux;
|
|
subversion = all;
|
|
subversion16 = all;
|
|
sudo = linux;
|
|
superTuxKart = linux;
|
|
swig = linux;
|
|
sylpheed = linux;
|
|
sysklogd = linux;
|
|
syslinux = ["i686-linux"];
|
|
sysvinit = linux;
|
|
sysvtools = linux;
|
|
tcpdump = linux;
|
|
teeworlds = linux;
|
|
tetex = linux;
|
|
texLive = linux;
|
|
texLiveBeamer = linux;
|
|
texLiveExtra = linux;
|
|
texinfo = all;
|
|
thunderbird = linux;
|
|
tightvnc = linux;
|
|
time = linux;
|
|
tinycc = ["i686-linux"];
|
|
udev = linux;
|
|
uml = ["i686-linux"];
|
|
unzip = all;
|
|
upstart = linux;
|
|
utillinux = linux;
|
|
valgrind = linux;
|
|
vim = linux;
|
|
vimHugeX = linux;
|
|
vlc = linux;
|
|
vorbisTools = linux;
|
|
vpnc = linux;
|
|
w3m = all;
|
|
webkit = linux;
|
|
wget = all;
|
|
wine = ["i686-linux"];
|
|
wirelesstools = linux;
|
|
wxHaskell = linux;
|
|
x11_ssh_askpass = linux;
|
|
xchm = linux;
|
|
xfig = x11Supported;
|
|
xineUI = linux;
|
|
xkeyboard_config = linux;
|
|
xlockmore = linux;
|
|
xmltv = linux;
|
|
xpdf = linux;
|
|
xscreensaver = linux;
|
|
xsel = linux;
|
|
xterm = linux;
|
|
zdelta = linux;
|
|
zile = linux;
|
|
zip = all;
|
|
|
|
aspellDicts = {
|
|
de = all;
|
|
en = all;
|
|
es = all;
|
|
fr = all;
|
|
nl = all;
|
|
ru = all;
|
|
};
|
|
|
|
gnome = {
|
|
gconfeditor = linux;
|
|
gnomepanel = linux;
|
|
gnometerminal = linux;
|
|
gnomeutils = linux;
|
|
metacity = linux;
|
|
};
|
|
|
|
gtkLibs = {
|
|
gtk = linux;
|
|
};
|
|
|
|
kde3 = {
|
|
kdebase = linux;
|
|
kdelibs = linux;
|
|
};
|
|
|
|
kde42 = {
|
|
amarok = linux;
|
|
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;
|
|
ktorrent = linux;
|
|
kdesvn = linux;
|
|
krusader = linux;
|
|
};
|
|
|
|
kernelPackages_2_6_25 = {
|
|
aufs = linux;
|
|
kernel = linux;
|
|
virtualbox = linux;
|
|
};
|
|
|
|
kernelPackages_2_6_26 = {
|
|
aufs = linux;
|
|
kernel = linux;
|
|
virtualbox = linux;
|
|
};
|
|
|
|
kernelPackages_2_6_27 = {
|
|
aufs = linux;
|
|
kernel = linux;
|
|
virtualbox = linux;
|
|
};
|
|
|
|
kernelPackages_2_6_28 = {
|
|
aufs = linux;
|
|
kernel = linux;
|
|
virtualbox = linux;
|
|
};
|
|
|
|
xorg = {
|
|
fontadobe100dpi = linux;
|
|
fontadobe75dpi = linux;
|
|
fontbh100dpi = linux;
|
|
fontbhlucidatypewriter100dpi = linux;
|
|
fontbhlucidatypewriter75dpi = linux;
|
|
fontbhttf = linux;
|
|
fontcursormisc = linux;
|
|
fontmiscmisc = linux;
|
|
iceauth = linux;
|
|
libX11 = linux;
|
|
lndir = all;
|
|
setxkbmap = linux;
|
|
xauth = linux;
|
|
xf86inputkeyboard = linux;
|
|
xf86inputmouse = linux;
|
|
xf86videoi810 = linux;
|
|
xf86videovesa = linux;
|
|
xkbcomp = linux;
|
|
xorgserver = linux;
|
|
xrandr = linux;
|
|
xrdb = linux;
|
|
xset = linux;
|
|
};
|
|
|
|
}
|