From 0b68b152e270d45df844edbc3b1e2d99f0cd19de Mon Sep 17 00:00:00 2001 From: linsui <36977733+linsui@users.noreply.github.com> Date: Wed, 4 Sep 2024 14:27:27 +0000 Subject: [PATCH] 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: zowoq <59103226+zowoq@users.noreply.github.com> Co-authored-by: Aleksana --- pkgs/development/compilers/go/binary.nix | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/pkgs/development/compilers/go/binary.nix b/pkgs/development/compilers/go/binary.nix index 777c82a59775..d5b86c06f557 100644 --- a/pkgs/development/compilers/go/binary.nix +++ b/pkgs/development/compilers/go/binary.nix @@ -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; + }; }