Use correct gmp for cross-build

svn path=/nixpkgs/trunk/; revision=30288
This commit is contained in:
Michael Raskin 2011-11-07 04:26:06 +00:00
parent adc111e85f
commit 0efee09246

View File

@ -5,7 +5,7 @@ let
staticFlags = if static then " --enable-static --disable-shared" else "";
in
stdenv.mkDerivation {
stdenv.mkDerivation rec {
name = "isl-${version}";
src = fetchurl {
@ -17,6 +17,9 @@ stdenv.mkDerivation {
dontDisableStatic = if static then true else false;
configureFlags = "--with-gmp-prefix=${gmp}" + staticFlags;
crossAttrs = {
configureFlags = configureFlags + " --with-gmp-prefix=${gmp.hostDrv} ";
};
meta = {
homepage = http://www.kotnet.org/~skimo/isl/;