aboutsummaryrefslogtreecommitdiff
path: root/pkgs/development/libraries/readline
diff options
context:
space:
mode:
authorhsloan <ishaqsloan@gmail.com>2017-06-28 16:27:22 -0400
committerJohn Ericson <John.Ericson@Obsidian.Systems>2017-06-28 19:42:35 -0400
commitf9730bc8dadd9f4d170a5f3ac3cfb7dedd08250f (patch)
tree28f877f0101ce544226a1c521956919c793e9c47 /pkgs/development/libraries/readline
parent45272c98f5c0cfe90176b706de9384e4c2803afb (diff)
readline 7.0: Don't use stdenv ? cross
Diffstat (limited to 'pkgs/development/libraries/readline')
-rw-r--r--pkgs/development/libraries/readline/7.0.nix6
1 files changed, 4 insertions, 2 deletions
diff --git a/pkgs/development/libraries/readline/7.0.nix b/pkgs/development/libraries/readline/7.0.nix
index 9d1c1c57f8c1..7cc76e087685 100644
--- a/pkgs/development/libraries/readline/7.0.nix
+++ b/pkgs/development/libraries/readline/7.0.nix
@@ -1,4 +1,6 @@
-{ fetchurl, stdenv, ncurses }:
+{ fetchurl, stdenv, ncurses
+, buildPlatform, hostPlatform
+}:
stdenv.mkDerivation rec {
name = "readline-${version}";
@@ -33,7 +35,7 @@ stdenv.mkDerivation rec {
*/
# 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; {