readline 6.3: Don't use stdenv ? cross

This commit is contained in:
hsloan 2017-06-28 16:26:37 -04:00 committed by John Ericson
parent a46b063ac1
commit 45272c98f5

View file

@ -1,4 +1,6 @@
{ fetchurl, stdenv, ncurses }:
{ fetchurl, stdenv, ncurses
, buildPlatform, hostPlatform
}:
stdenv.mkDerivation rec {
name = "readline-6.3p08";
@ -29,7 +31,7 @@ stdenv.mkDerivation rec {
import ./readline-6.3-patches.nix patch);
# Don't run the native `strip' when cross-compiling.
dontStrip = stdenv ? cross;
dontStrip = hostPlatform != buildPlatform;
bash_cv_func_sigsetjmp = if stdenv.isCygwin then "missing" else null;
meta = with stdenv.lib; {