3
0
Fork 0
forked from mirrors/nixpkgs

lynx: Fix for cross

Needed C toolchain targeting build platform
This commit is contained in:
John Ericson 2017-06-04 19:15:31 -04:00 committed by John Ericson
parent be3f18d79e
commit 502902f1c6

View file

@ -1,5 +1,7 @@
{ stdenv, fetchurl, ncurses, gzip, pkgconfig
{ stdenv, buildPackages
, fetchurl, pkgconfig, ncurses, gzip
, sslSupport ? true, openssl ? null
, buildPlatform, hostPlatform
}:
assert sslSupport -> openssl != null;
@ -15,7 +17,9 @@ stdenv.mkDerivation rec {
configureFlags = [ "--enable-widec" ] ++ stdenv.lib.optional sslSupport "--with-ssl";
nativeBuildInputs = stdenv.lib.optional sslSupport pkgconfig;
nativeBuildInputs = stdenv.lib.optional sslSupport pkgconfig
++ stdenv.lib.optional (hostPlatform != buildPlatform) buildPackages.stdenv.cc;
buildInputs = [ ncurses gzip ] ++ stdenv.lib.optional sslSupport openssl.dev;
meta = with stdenv.lib; {