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