Unverified Commit 0b68b152 authored by linsui's avatar linsui Committed by GitHub
Browse files

go: set meta attribute for bootstrap binary derivation (#276857)



* go: set sourceProvenance for bootstrap binary

* Update pkgs/development/compilers/go/binary.nix

---------

Co-authored-by: default avatarzowoq <59103226+zowoq@users.noreply.github.com>
Co-authored-by: default avatarAleksana <me@aleksana.moe>
parent f24c1305
Loading
Loading
Loading
Loading
+11 −1
Original line number Diff line number Diff line
@@ -18,7 +18,7 @@ let

  platform = toGoPlatform stdenv.hostPlatform;
in
stdenv.mkDerivation rec {
stdenv.mkDerivation {
  name = "go-${version}-${platform}-bootstrap";

  src = fetchurl {
@@ -36,4 +36,14 @@ stdenv.mkDerivation rec {
    ln -s $out/share/go/bin/go $out/bin/go
    runHook postInstall
  '';

  meta = with lib; {
    sourceProvenance = with sourceTypes; [ binaryNativeCode ];
    changelog = "https://go.dev/doc/devel/release#go${lib.versions.majorMinor version}";
    description = "The Go Programming language";
    homepage = "https://go.dev/";
    license = licenses.bsd3;
    maintainers = teams.golang.members;
    platforms = platforms.darwin ++ platforms.linux;
  };
}