readline 6.2: Don't use stdenv ? cross

This commit is contained in:
hsloan 2017-06-28 16:25:05 -04:00 committed by John Ericson
parent d28eb3b7a0
commit a46b063ac1

View File

@ -1,4 +1,6 @@
{ fetchurl, stdenv, ncurses }: { fetchurl, stdenv, ncurses
, buildPlatform, hostPlatform
}:
stdenv.mkDerivation (rec { stdenv.mkDerivation (rec {
name = "readline-6.2"; name = "readline-6.2";
@ -57,6 +59,6 @@ stdenv.mkDerivation (rec {
// //
# Don't run the native `strip' when cross-compiling. # Don't run the native `strip' when cross-compiling.
(if (stdenv ? cross) (if hostPlatform != buildPlatform
then { dontStrip = true; } then { dontStrip = true; }
else { })) else { }))