go: fix eval for binary derivation ()

This commit is contained in:
Aleksana 2024-09-04 22:46:24 +08:00 committed by GitHub
commit 80759438c6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,4 +1,4 @@
{ stdenv, fetchurl, version, hashes }:
{ lib, stdenv, fetchurl, version, hashes }:
let
toGoKernel = platform:
if platform.isDarwin then "darwin"
@ -37,13 +37,13 @@ stdenv.mkDerivation {
runHook postInstall
'';
meta = with lib; {
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
meta = {
sourceProvenance = with lib.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;
license = lib.licenses.bsd3;
maintainers = lib.teams.golang.members;
platforms = lib.platforms.darwin ++ lib.platforms.linux;
};
}