about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorhsloan <ishaqsloan@gmail.com>2017-06-28 16:13:56 -0400
committerJohn Ericson <John.Ericson@Obsidian.Systems>2017-06-28 19:34:03 -0400
commit5a21bb6917abc75f294b49b7902bc9b5545aad82 (patch)
tree6fe7c514aa75443db253d1b07c121e00fa02d8de /pkgs
parent58196b607e18c3c99268d40a0fee60462dccbdaf (diff)
libffi: Don't use stdenv ? cross
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/libraries/libffi/default.nix6
1 files changed, 4 insertions, 2 deletions
diff --git a/pkgs/development/libraries/libffi/default.nix b/pkgs/development/libraries/libffi/default.nix
index b203f6346476b..ca149bd3db357 100644
--- a/pkgs/development/libraries/libffi/default.nix
+++ b/pkgs/development/libraries/libffi/default.nix
@@ -1,4 +1,6 @@
-{ fetchurl, stdenv, dejagnu, doCheck ? false }:
+{ fetchurl, stdenv, dejagnu, doCheck ? false
+, buildPlatform, hostPlatform
+}:
 
 stdenv.mkDerivation rec {
   name = "libffi-3.2.1";
@@ -21,7 +23,7 @@ stdenv.mkDerivation rec {
 
   inherit doCheck;
 
-  dontStrip = stdenv ? cross; # Don't run the native `strip' when cross-compiling.
+  dontStrip = hostPlatform != buildPlatform; # Don't run the native `strip' when cross-compiling.
 
   # Install headers and libs in the right places.
   postFixup = ''