forked from mirrors/gomod2nix
Merge pull request #63 from adisbladis/let-package-remove
buildGoApplication: Remove package from let binding
This commit is contained in:
commit
0a790b6075
1 changed files with 144 additions and 147 deletions
|
@ -222,7 +222,7 @@ let
|
||||||
inherit go modulesStruct localReplaceCommands defaultPackage;
|
inherit go modulesStruct localReplaceCommands defaultPackage;
|
||||||
};
|
};
|
||||||
|
|
||||||
package =
|
in
|
||||||
lib.warnIf (buildFlags != "" || buildFlagsArray != "")
|
lib.warnIf (buildFlags != "" || buildFlagsArray != "")
|
||||||
"Use the `ldflags` and/or `tags` attributes instead of `buildFlags`/`buildFlagsArray`"
|
"Use the `ldflags` and/or `tags` attributes instead of `buildFlags`/`buildFlagsArray`"
|
||||||
stdenv.mkDerivation
|
stdenv.mkDerivation
|
||||||
|
@ -368,9 +368,6 @@ let
|
||||||
meta = { platforms = go.meta.platforms or lib.platforms.all; } // meta;
|
meta = { platforms = go.meta.platforms or lib.platforms.all; } // meta;
|
||||||
});
|
});
|
||||||
|
|
||||||
in
|
|
||||||
package;
|
|
||||||
|
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
inherit buildGoApplication mkGoEnv;
|
inherit buildGoApplication mkGoEnv;
|
||||||
|
|
Loading…
Reference in a new issue