From 45272c98f5c0cfe90176b706de9384e4c2803afb Mon Sep 17 00:00:00 2001 From: hsloan Date: Wed, 28 Jun 2017 16:26:37 -0400 Subject: [PATCH] readline 6.3: Don't use stdenv ? cross --- pkgs/development/libraries/readline/6.3.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/readline/6.3.nix b/pkgs/development/libraries/readline/6.3.nix index 80cc7e923b83..822ce7b0055d 100644 --- a/pkgs/development/libraries/readline/6.3.nix +++ b/pkgs/development/libraries/readline/6.3.nix @@ -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; {