From f4b2ec4b58cdc23dbc494510709cdacd71d5db22 Mon Sep 17 00:00:00 2001 From: David Guibert Date: Tue, 16 Aug 2011 21:13:20 +0000 Subject: [PATCH] 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). svn path=/nixpkgs/trunk/; revision=28623 --- pkgs/development/libraries/mpich2/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/libraries/mpich2/default.nix b/pkgs/development/libraries/mpich2/default.nix index 06bb08cd9609..967abe500e26 100644 --- a/pkgs/development/libraries/mpich2/default.nix +++ b/pkgs/development/libraries/mpich2/default.nix @@ -12,7 +12,7 @@ stdenv.mkDerivation { 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.\*)