summary refs log tree commit diff
path: root/pkgs/top-level/release.nix
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2009-09-23 19:45:02 +0000
committerEelco Dolstra <eelco.dolstra@logicblox.com>2009-09-23 19:45:02 +0000
commitb7a90c11d3fb0b9a97553f2924723082658c8da2 (patch)
tree3974100233042f207c40d335383df253856741d5 /pkgs/top-level/release.nix
parent880e6ba1f7b2b98c758e69ca7714d8337248e2df (diff)
downloadnixpkgs-b7a90c11d3fb0b9a97553f2924723082658c8da2.tar
nixpkgs-b7a90c11d3fb0b9a97553f2924723082658c8da2.tar.gz
nixpkgs-b7a90c11d3fb0b9a97553f2924723082658c8da2.tar.bz2
nixpkgs-b7a90c11d3fb0b9a97553f2924723082658c8da2.tar.lz
nixpkgs-b7a90c11d3fb0b9a97553f2924723082658c8da2.tar.xz
nixpkgs-b7a90c11d3fb0b9a97553f2924723082658c8da2.tar.zst
nixpkgs-b7a90c11d3fb0b9a97553f2924723082658c8da2.zip
* selectMaintained (renamed): don't use meta.maintainer, just use
  meta.platforms.
* Valgrind *should* work on Darwin now, except that our GCC doesn't
  recognise the -arch flag.

svn path=/nixpkgs/trunk/; revision=17372
Diffstat (limited to 'pkgs/top-level/release.nix')
-rw-r--r--pkgs/top-level/release.nix24
1 files changed, 11 insertions, 13 deletions
diff --git a/pkgs/top-level/release.nix b/pkgs/top-level/release.nix
index 72217ec3b15..30072c40ad2 100644
--- a/pkgs/top-level/release.nix
+++ b/pkgs/top-level/release.nix
@@ -33,8 +33,10 @@ let
           (pkgs.lib.getAttrFromPath path pkgs);
       in testOn job.systems getPkg);
 
-  selectMaintained = attrSet: 
-    if builtins  ? tryEval then 
+  /* Find all packages that have a meta.platforms field listing the
+     supported platforms. */
+  packagesWithMetaPlatform = attrSet: 
+    if builtins ? tryEval then 
       let pairs = pkgs.lib.concatMap 
         (x: let val = builtins.tryEval (processPackage (builtins.getAttr x attrSet)); in
           if val.success && val.value != [] then [{name=x; value=val.value;}] else [])
@@ -42,17 +44,15 @@ let
       in
         builtins.listToAttrs pairs
     else {};
-  # May fail as much as it wishes, we will catch the error
+    
+  # May fail as much as it wishes, we will catch the error.
   processPackage = attrSet: 
     if attrSet ? recurseForDerivations && attrSet.recurseForDerivations then 
-      selectMaintained attrSet
+      packagesWithMetaPlatform attrSet
     else
-      if attrSet.meta.maintainers != [] then
-        (if builtins.hasAttr "platforms" attrSet.meta
-         then builtins.getAttr "platforms" attrSet.meta
-         else pkgs.lib.platforms.all)
-      else
-        []; 
+      if builtins.hasAttr "platforms" attrSet.meta
+      then builtins.getAttr "platforms" attrSet.meta
+      else [];
 
   /* Common platform groups on which to test packages. */
   inherit (pkgs.lib.platforms) linux darwin cygwin allBut all;
@@ -66,7 +66,7 @@ in {
 
   tarball = import ./make-tarball.nix;
 
-} // (mapTestOn ((selectMaintained pkgs) // rec {
+} // (mapTestOn ((packagesWithMetaPlatform pkgs) // rec {
 
   MPlayer = linux;
   abcde = linux;
@@ -161,7 +161,6 @@ in {
   gcc43_multi = ["x86_64-linux"];
   gcc44 = linux;
   gcj44 = linux;
-  gdb = all;
   ghostscript = linux;
   ghostscriptX = linux;
   gimp = linux;
@@ -375,7 +374,6 @@ in {
   utillinux = linux;
   utillinuxCurses = linux;
   uzbl = linux;
-  valgrind = linux;
   viking = linux;
   vice = linux;
   vim = linux;