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