From e98264fe8f09795f337608758a9d6cd8cf620050 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Sun, 13 Nov 2011 21:28:35 +0000 Subject: [PATCH] GNU Guile: Fix cross-compilation. svn path=/nixpkgs/trunk/; revision=30415 --- pkgs/development/interpreters/guile/default.nix | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/pkgs/development/interpreters/guile/default.nix b/pkgs/development/interpreters/guile/default.nix index 33349605736..839de3c053d 100644 --- a/pkgs/development/interpreters/guile/default.nix +++ b/pkgs/development/interpreters/guile/default.nix @@ -14,11 +14,8 @@ rec { sha256 = "14rhlpxxa4v5y3gl992l7lnd5qnqawx0a84idnwq0w2qviwcvsyj"; }; - buildNativeInputs = [ xz ]; - buildInputs = - [ makeWrapper gawk readline libtool libunistring - libffi pkgconfig - ]; + buildNativeInputs = [ xz makeWrapper gawk pkgconfig ]; + buildInputs = [ readline libtool libunistring libffi ]; propagatedBuildInputs = [ gmp boehmgc ] # XXX: These ones aren't normally needed here, but since @@ -27,6 +24,11 @@ rec { # see below. ++ [ libtool libunistring ]; + # A native Guile 2.0 is needed to cross-build Guile. + selfBuildNativeInput = true; + + enableParallelBuilding = true; + patches = stdenv.lib.optionals (coverageAnalysis != null) [ ./gcov-file-name.patch ./disable-gc-sensitive-tests.patch ];