mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-20 04:31:52 +00:00
libffi: Don't use stdenv ? cross
This commit is contained in:
parent
58196b607e
commit
5a21bb6917
|
@ -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 = ''
|
||||
|
|
Loading…
Reference in a new issue