Merge pull request #63 from adisbladis/let-package-remove

buildGoApplication: Remove package from let binding
This commit is contained in:
adisbladis 2022-06-14 20:51:16 +08:00 committed by GitHub
commit 0a790b6075
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;