From 67ae0f03700d1ad9a9a9f2f0812141ca8a7825f8 Mon Sep 17 00:00:00 2001 From: hsloan Date: Wed, 28 Jun 2017 16:01:43 -0400 Subject: [PATCH] boehm-gc: Don't use stdenv ? cross --- pkgs/development/libraries/boehm-gc/default.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/boehm-gc/default.nix b/pkgs/development/libraries/boehm-gc/default.nix index 96e41790aac..d32ec6cbf58 100644 --- a/pkgs/development/libraries/boehm-gc/default.nix +++ b/pkgs/development/libraries/boehm-gc/default.nix @@ -1,4 +1,6 @@ -{ lib, stdenv, fetchurl, pkgconfig, libatomic_ops, enableLargeConfig ? false }: +{ lib, stdenv, fetchurl, pkgconfig, libatomic_ops, enableLargeConfig ? false +, buildPlatform, hostPlatform +}: stdenv.mkDerivation rec { name = "boehm-gc-7.6.0"; @@ -20,7 +22,7 @@ stdenv.mkDerivation rec { doCheck = true; # Don't run the native `strip' when cross-compiling. - dontStrip = stdenv ? cross; + dontStrip = hostPlatform != buildPlatform; postInstall = ''