2009-09-16 16:13:26 +02:00
|
|
|
/* A Hydra jobset to test Guile-using applications and libraries with the
|
|
|
|
Guile 2.x pre-releases.
|
|
|
|
|
|
|
|
-- ludo@gnu.org */
|
|
|
|
|
|
|
|
let
|
|
|
|
allPackages = import ./all-packages.nix;
|
|
|
|
|
2009-09-21 14:24:04 +02:00
|
|
|
pkgsFun = { system ? builtins.currentSystem }:
|
|
|
|
allPackages {
|
|
|
|
inherit system;
|
|
|
|
config.packageOverrides = pkgs: {
|
2011-02-22 14:39:56 +01:00
|
|
|
guile = pkgs.guile_2_0;
|
2009-09-21 14:24:04 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2009-09-20 22:37:41 +02:00
|
|
|
pkgs = pkgsFun {};
|
2009-09-16 16:13:26 +02:00
|
|
|
|
2009-09-20 00:07:37 +02:00
|
|
|
toJob = x: if builtins.isAttrs x then x else
|
|
|
|
{ type = "job"; systems = x; schedulingPriority = 10; };
|
|
|
|
|
2009-09-19 23:44:50 +02: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. */
|
|
|
|
testOn = systems: f: {system ? builtins.currentSystem}:
|
|
|
|
if pkgs.lib.elem system systems
|
2009-09-20 22:37:41 +02:00
|
|
|
then f (pkgsFun {inherit system;})
|
2009-09-19 23:44:50 +02:00
|
|
|
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);
|
|
|
|
|
2009-09-16 16:13:26 +02:00
|
|
|
inherit (pkgs.lib.platforms) linux darwin cygwin allBut all;
|
|
|
|
|
2009-09-19 23:44:50 +02:00
|
|
|
in (mapTestOn {
|
2009-09-16 16:13:26 +02:00
|
|
|
/* The package list below was obtained with:
|
|
|
|
|
2010-02-13 20:22:16 +01:00
|
|
|
cat top-level/all-packages.nix \
|
|
|
|
| grep -B3 'guile[^=]*$' \
|
|
|
|
| grep '^[[:blank:]]*[a-zA-Z0-9_]\+[[:blank:]]*=' \
|
2009-09-16 16:13:26 +02:00
|
|
|
| sed -es'/^[[:blank:]]*\(.\+\)[[:blank:]]*=.*$/\1= linux;/g'
|
|
|
|
|
|
|
|
with some minor edits.
|
|
|
|
*/
|
|
|
|
|
2009-09-16 16:14:57 +02:00
|
|
|
guile = linux;
|
|
|
|
|
2009-09-29 11:01:44 +02:00
|
|
|
autogen = linux;
|
2009-09-16 16:13:26 +02:00
|
|
|
lsh = linux;
|
|
|
|
mailutils = linux;
|
|
|
|
mcron = linux;
|
2010-02-13 20:22:16 +01:00
|
|
|
texmacs = linux;
|
2009-10-06 00:21:35 +02:00
|
|
|
guileCairo = linux;
|
2009-10-06 00:21:55 +02:00
|
|
|
guileGnome = linux;
|
2010-09-06 17:36:41 +02:00
|
|
|
guile_lib = linux;
|
2009-09-16 16:13:26 +02:00
|
|
|
guileLint = linux;
|
2011-01-20 23:14:47 +01:00
|
|
|
guile_ncurses = linux;
|
2009-09-16 16:13:26 +02:00
|
|
|
gwrap = linux;
|
2009-09-21 22:25:36 +02:00
|
|
|
swig = linux;
|
2009-09-16 16:13:26 +02:00
|
|
|
gnutls = linux;
|
2009-09-30 15:11:02 +02:00
|
|
|
slibGuile = linux;
|
2009-09-16 16:13:26 +02:00
|
|
|
dico = linux;
|
|
|
|
trackballs = linux;
|
|
|
|
beast = linux;
|
|
|
|
elinks = linux;
|
2009-09-30 15:11:20 +02:00
|
|
|
gnucash = linux;
|
2009-09-16 16:13:26 +02:00
|
|
|
gnunet = linux;
|
|
|
|
snd = linux;
|
|
|
|
ballAndPaddle = linux;
|
|
|
|
drgeo = linux;
|
|
|
|
lilypond = linux;
|
2011-02-16 23:50:02 +01:00
|
|
|
liquidwar = linux;
|
|
|
|
freetalk = linux;
|
2009-09-19 23:44:50 +02:00
|
|
|
})
|