diff --git a/pkgs/development/go-modules/generic/default.nix b/pkgs/development/go-modules/generic/default.nix index 58716d371709..130387a97b0e 100644 --- a/pkgs/development/go-modules/generic/default.nix +++ b/pkgs/development/go-modules/generic/default.nix @@ -46,7 +46,7 @@ with builtins; let args = removeAttrs args' [ "overrideModAttrs" "vendorSha256" "disabled" ]; - go-modules = if vendorSha256 != null then go.stdenv.mkDerivation (let modArgs = { + go-modules = if vendorSha256 != null then stdenv.mkDerivation (let modArgs = { name = "${name}-go-modules"; @@ -119,7 +119,7 @@ let } ) // overrideModAttrs modArgs) else ""; - package = go.stdenv.mkDerivation (args // { + package = stdenv.mkDerivation (args // { nativeBuildInputs = [ go ] ++ nativeBuildInputs; inherit (go) GOOS GOARCH;