From 6fff56280fb809c97a204e2ad8b364c23b3557c0 Mon Sep 17 00:00:00 2001 From: Ivan Babrou Date: Tue, 16 Feb 2021 13:39:08 -0800 Subject: [PATCH] go: do not strip bootstrap on darwin --- pkgs/development/compilers/go/binary.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/development/compilers/go/binary.nix b/pkgs/development/compilers/go/binary.nix index 537c1f1ba45..9a0dc343546 100644 --- a/pkgs/development/compilers/go/binary.nix +++ b/pkgs/development/compilers/go/binary.nix @@ -25,6 +25,9 @@ stdenv.mkDerivation rec { sha256 = hashes.${platform} or (throw "Missing Go bootstrap hash for platform ${platform}"); }; + # We must preserve the signature on Darwin + dontStrip = stdenv.hostPlatform.isDarwin; + installPhase = '' mkdir -p $out/share/go $out/bin mv bin/* $out/bin