From addc94bee790e62f695742ea8668fdaceb720b41 Mon Sep 17 00:00:00 2001 From: Artturin Date: Thu, 26 May 2022 00:11:16 +0300 Subject: [PATCH] go_1_17: fix pkgsCross.raspberryPi.pkgsBuildHost.go_1_17 /nix/store/lyl6nysc3i3aqhj6shizjgj0ibnf1pvg-glibc-2.34-210/lib/libpthread.so: file not recognized: file format not recognized --- pkgs/development/compilers/go/1.17.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/development/compilers/go/1.17.nix b/pkgs/development/compilers/go/1.17.nix index f54452e338fa..a2c0d3d16b91 100644 --- a/pkgs/development/compilers/go/1.17.nix +++ b/pkgs/development/compilers/go/1.17.nix @@ -67,9 +67,12 @@ stdenv.mkDerivation rec { sha256 = "sha256-KZ5VrzDxVpGwFdjc+OyuckEkElaeWy7OIDYXU6RW8vk="; }; + strictDeps = true; # perl is used for testing go vet nativeBuildInputs = [ perl which pkg-config procps ]; - buildInputs = [ cacert pcre ]; + buildInputs = [ cacert pcre ] + ++ lib.optionals stdenv.isLinux [ stdenv.cc.libc.out ] + ++ lib.optionals (stdenv.hostPlatform.libc == "glibc") [ stdenv.cc.libc.static ]; propagatedBuildInputs = lib.optionals stdenv.isDarwin [ xcbuild ];