mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-11 15:27:20 +03:00
buildGo{Module,Package}: remove input argument "tags"
Unify how ldflags and tags are passed
This commit is contained in:
parent
a91f6eba1e
commit
aea73adfdd
@ -6,9 +6,6 @@
|
||||
, passthru ? { }
|
||||
, patches ? [ ]
|
||||
|
||||
# Go tags, passed to go via -tag
|
||||
, tags ? [ ]
|
||||
|
||||
# A function to override the go-modules derivation
|
||||
, overrideModAttrs ? (_oldAttrs: { })
|
||||
|
||||
@ -201,7 +198,7 @@ let
|
||||
|
||||
declare -a flags
|
||||
flags+=($buildFlags "''${buildFlagsArray[@]}")
|
||||
flags+=(''${tags:+-tags=${lib.concatStringsSep "," tags}})
|
||||
flags+=(''${tags:+-tags=''${tags// /,}})
|
||||
flags+=(''${ldflags:+-ldflags="$ldflags"})
|
||||
flags+=("-p" "$NIX_BUILD_CORES")
|
||||
|
||||
|
@ -7,9 +7,6 @@
|
||||
, preFixup ? ""
|
||||
, shellHook ? ""
|
||||
|
||||
# Go tags, passed to go via -tag
|
||||
, tags ? []
|
||||
|
||||
# We want parallel builds by default
|
||||
, enableParallelBuilding ? true
|
||||
|
||||
@ -166,7 +163,7 @@ let
|
||||
|
||||
declare -a flags
|
||||
flags+=($buildFlags "''${buildFlagsArray[@]}")
|
||||
flags+=(''${tags:+-tags=${lib.concatStringsSep "," tags}})
|
||||
flags+=(''${tags:+-tags=''${tags// /,}})
|
||||
flags+=(''${ldflags:+-ldflags="$ldflags"})
|
||||
flags+=("-p" "$NIX_BUILD_CORES")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user