From cc15cb63e6ea888642b66d61262574c433be166a Mon Sep 17 00:00:00 2001 From: aleksana Date: Wed, 4 Sep 2024 22:44:43 +0800 Subject: [PATCH] go: fix eval for binary derivation This was broken in https://github.com/NixOS/nixpkgs/pull/276857 commit 69aa113e45f448d12a2648986ab3694a7ad2b84f --- pkgs/development/compilers/go/binary.nix | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pkgs/development/compilers/go/binary.nix b/pkgs/development/compilers/go/binary.nix index d5b86c06f557..3c43cc4de150 100644 --- a/pkgs/development/compilers/go/binary.nix +++ b/pkgs/development/compilers/go/binary.nix @@ -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; }; }