diff options
author | Michael Raskin <7c6f434c@mail.ru> | 2009-08-28 06:29:21 +0000 |
---|---|---|
committer | Michael Raskin <7c6f434c@mail.ru> | 2009-08-28 06:29:21 +0000 |
commit | d109e4cd95fd34f43cf07dfd293b7dc67dc42fc6 (patch) | |
tree | 09da6864f1532a7c9a0710be128dba2162630c98 /pkgs/top-level/release.nix | |
parent | 08d98a9972fa9c5812ab660729f3fa31b14c6557 (diff) | |
download | nixpkgs-d109e4cd95fd34f43cf07dfd293b7dc67dc42fc6.tar nixpkgs-d109e4cd95fd34f43cf07dfd293b7dc67dc42fc6.tar.gz nixpkgs-d109e4cd95fd34f43cf07dfd293b7dc67dc42fc6.tar.bz2 nixpkgs-d109e4cd95fd34f43cf07dfd293b7dc67dc42fc6.tar.lz nixpkgs-d109e4cd95fd34f43cf07dfd293b7dc67dc42fc6.tar.xz nixpkgs-d109e4cd95fd34f43cf07dfd293b7dc67dc42fc6.tar.zst nixpkgs-d109e4cd95fd34f43cf07dfd293b7dc67dc42fc6.zip |
Trying to reinstate the meta-based Hydra builds
svn path=/nixpkgs/trunk/; revision=16883
Diffstat (limited to 'pkgs/top-level/release.nix')
-rw-r--r-- | pkgs/top-level/release.nix | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/pkgs/top-level/release.nix b/pkgs/top-level/release.nix index 3c150703f5d..4ddf090633e 100644 --- a/pkgs/top-level/release.nix +++ b/pkgs/top-level/release.nix @@ -35,20 +35,20 @@ let selectMaintained = attrSet: let pairs = pkgs.lib.concatMap - (x: let val = processPackage (builtins.getAttr x attrSet); in - if val != [] then [{name=x; value=val;}] else []) + (x: let val = builtins.tryEval (processPackage (builtins.getAttr x attrSet)); in + if val.success && val.value != [] then [{name=x; value=val.value;}] else []) (builtins.attrNames attrSet); in builtins.listToAttrs pairs; + # May fail as much as it wishes, we will catch the error processPackage = attrSet: - if builtins.isAttrs attrSet then - if pkgs.lib.attrByPath ["recurseForDerivations"] false attrSet then - selectMaintained attrSet + if attrSet ? recurseForDerivations && attrSet.recurseForDerivations then + selectMaintained attrSet + else + if attrSet.meta.maintainers != [] then + attrSet.meta.platforms else - if (pkgs.lib.attrByPath ["meta" "maintainers"] [] attrSet) != [] then - pkgs.lib.attrByPath ["meta" "platforms"] [] attrSet - else [] - else []; + []; /* Common platform groups on which to test packages. */ inherit (pkgs.lib.platforms) linux darwin cygwin allBut all; @@ -62,7 +62,7 @@ in { tarball = import ./make-tarball.nix; -} // (mapTestOn (/* (selectMaintained pkgs) // */ rec { +} // (mapTestOn ((selectMaintained pkgs) // rec { MPlayer = linux; abcde = linux; |