about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJan Malakhovski <oxij@oxij.org>2018-08-08 21:09:49 +0000
committerJan Malakhovski <oxij@oxij.org>2018-08-11 09:35:40 +0000
commit35c9435d15b31bdfc000d67670b7ac58dca30c4e (patch)
treeb37d6e9464cc7341cc7e0b1210203475bfbc9917
parentfed9423825a35f08661bb6845d16ec4199b70fed (diff)
downloadnixlib-35c9435d15b31bdfc000d67670b7ac58dca30c4e.tar
nixlib-35c9435d15b31bdfc000d67670b7ac58dca30c4e.tar.gz
nixlib-35c9435d15b31bdfc000d67670b7ac58dca30c4e.tar.bz2
nixlib-35c9435d15b31bdfc000d67670b7ac58dca30c4e.tar.lz
nixlib-35c9435d15b31bdfc000d67670b7ac58dca30c4e.tar.xz
nixlib-35c9435d15b31bdfc000d67670b7ac58dca30c4e.tar.zst
nixlib-35c9435d15b31bdfc000d67670b7ac58dca30c4e.zip
binutils: disable installcheck for different targetPlatforms
-rw-r--r--pkgs/development/tools/misc/binutils/default.nix5
1 files changed, 4 insertions, 1 deletions
diff --git a/pkgs/development/tools/misc/binutils/default.nix b/pkgs/development/tools/misc/binutils/default.nix
index 890ff7b64a91..3ca9e539ddd8 100644
--- a/pkgs/development/tools/misc/binutils/default.nix
+++ b/pkgs/development/tools/misc/binutils/default.nix
@@ -1,6 +1,6 @@
 { stdenv, buildPackages
 , fetchurl, zlib, autoreconfHook264
-, hostPlatform, targetPlatform
+, hostPlatform, buildPlatform, targetPlatform
 , noSysDirs, gold ? true, bison ? null
 }:
 
@@ -121,6 +121,9 @@ stdenv.mkDerivation rec {
 
   doCheck = false; # fails
 
+  # else fails with "./sanity.sh: line 36: $out/bin/size: not found"
+  doInstallCheck = buildPlatform == hostPlatform && hostPlatform == targetPlatform;
+
   enableParallelBuilding = true;
 
   passthru = {