gettext: Check for existence of stdenv.ccCross.
Should only affect cross-builds, however I didn't test whether
cross-building gettext actually works. But if it's broken now, it was
broken before as well and this at least unbreaks the non-cross-built
nixpkgs tarball job :-)
Signed-off-by: aszlig <aszlig@redmoonstudios.org>
commitf4edebfa129d6f762ebd3c16da7eaecd9fe9e655
authoraszlig <aszlig@redmoonstudios.org>
dateSat 3 Jan 2015, 18:27 (12 years ago)
parent7982c34
pkgs/development/libraries/gettext/default.nix+1−1
@@ -35,7 +35,7 @@ stdenv.mkDerivation (rec {
3535 enableParallelBuilding = true;
3636
3737 crossAttrs = {
38− buildInputs = stdenv.lib.optional (stdenv.ccCross.libc ? libiconv)
38+ buildInputs = stdenv.lib.optional (stdenv ? ccCross && stdenv.ccCross.libc ? libiconv)
3939 stdenv.ccCross.libc.libiconv.crossDrv;
4040 # Gettext fails to guess the cross compiler
4141 configureFlags = "CXX=${stdenv.cross.config}-g++";