mirror of
https://github.com/tweag/gomod2nix.git
synced 2024-11-09 12:09:08 +00:00
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