buildGoApplication: Remove package from let binding

It's the thing we return so no point in binding it to a temporary variable.
This commit is contained in:
adisbladis 2022-06-14 19:26:45 +08:00
parent 896c05d90b
commit 74a2950c64

View file

@ -222,7 +222,7 @@ let
inherit go modulesStruct localReplaceCommands defaultPackage;
};
package =
in
lib.warnIf (buildFlags != "" || buildFlagsArray != "")
"Use the `ldflags` and/or `tags` attributes instead of `buildFlags`/`buildFlagsArray`"
stdenv.mkDerivation
@ -368,9 +368,6 @@ let
meta = { platforms = go.meta.platforms or lib.platforms.all; } // meta;
});
in
package;
in
{
inherit buildGoApplication mkGoEnv;