From 5a21bb6917abc75f294b49b7902bc9b5545aad82 Mon Sep 17 00:00:00 2001 From: hsloan Date: Wed, 28 Jun 2017 16:13:56 -0400 Subject: [PATCH] libffi: Don't use stdenv ? cross --- pkgs/development/libraries/libffi/default.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/libffi/default.nix b/pkgs/development/libraries/libffi/default.nix index b203f6346476..ca149bd3db35 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 = ''