diff --git a/pkgs/development/libraries/boehm-gc/default.nix b/pkgs/development/libraries/boehm-gc/default.nix index 96e41790aac8..d32ec6cbf58b 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 = ''