Author: guibert
Date: Tue Aug 16 21:13:20 2011
New Revision: 28623
URL: https://svn.nixos.org/websvn/nix/?rev=28623&sc=1

Log:
fix nixpkgs tarball.

Not all systems have glibc into stdenv but mpich needs to propagate
it (because when linking pthread and rt librairies are required).

Modified:
   nixpkgs/trunk/pkgs/development/libraries/mpich2/default.nix

Modified: nixpkgs/trunk/pkgs/development/libraries/mpich2/default.nix
==============================================================================
--- nixpkgs/trunk/pkgs/development/libraries/mpich2/default.nix Tue Aug 16 
18:21:05 2011        (r28622)
+++ nixpkgs/trunk/pkgs/development/libraries/mpich2/default.nix Tue Aug 16 
21:13:20 2011        (r28623)
@@ -12,7 +12,7 @@
   configureFlags = "--enable-shared --enable-sharedlib";
 
   buildInputs = [ python perl gfortran ];
-  propagatedBuildInputs = [ stdenv.glibc ];
+  propagatedBuildInputs = stdenv.lib.optional (stdenv ? glibc) [ stdenv.glibc 
];
 
   patchPhase =
     '' for i in $(find -type f -not -name Makefile.\*)
_______________________________________________
nix-commits mailing list
[email protected]
http://mail.cs.uu.nl/mailman/listinfo/nix-commits

Reply via email to