forked from mirrors/gomod2nix
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:
parent
896c05d90b
commit
74a2950c64
1 changed files with 144 additions and 147 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue