1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00

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 <me@aleksana.moe>
This commit is contained in:
linsui 2024-09-04 14:27:27 +00:00 committed by GitHub
parent f24c130569
commit 0b68b152e2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;
};
}