diff options
author | zowoq <59103226+zowoq@users.noreply.github.com> | 2021-08-22 14:29:05 +1000 |
---|---|---|
committer | zowoq <59103226+zowoq@users.noreply.github.com> | 2021-08-22 18:32:40 +1000 |
commit | 06e13c0c88cceb0647ec6b977eb68c169f9eed29 (patch) | |
tree | bc5d3a94fb09f8053f4022899aed687dcc8e3913 | |
parent | 870959c7fb3a42af1863bed9e1756086a74eb649 (diff) |
bee: buildFlags -> ldflags
-rw-r--r-- | pkgs/applications/networking/bee/bee.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/applications/networking/bee/bee.nix b/pkgs/applications/networking/bee/bee.nix index b0d05d928c05..0e269bf9ab3f 100644 --- a/pkgs/applications/networking/bee/bee.nix +++ b/pkgs/applications/networking/bee/bee.nix @@ -44,8 +44,8 @@ buildGoModule { subPackages = [ "cmd/bee" ]; # no symbol table, no debug info, and pass the commit for the version string - buildFlags = lib.optionalString ( lib.hasAttr "goVersionString" versionSpec) - "-ldflags -s -ldflags -w -ldflags -X=github.com/ethersphere/bee.commit=${versionSpec.goVersionString}"; + ldflags = lib.optionals ( lib.hasAttr "goVersionString" versionSpec) + [ "-s" "-w" "-X=github.com/ethersphere/bee.commit=${versionSpec.goVersionString}" ]; # Mimic the bee Makefile: without disabling CGO, two (transitive and # unused) dependencies would fail to compile. |