bee: buildFlags -> ldflags

zowoq 06e13c0c 870959c7

+2 -2
+2 -2
pkgs/applications/networking/bee/bee.nix
··· 44 44 subPackages = [ "cmd/bee" ]; 45 45 46 46 # no symbol table, no debug info, and pass the commit for the version string 47 - buildFlags = lib.optionalString ( lib.hasAttr "goVersionString" versionSpec) 48 - "-ldflags -s -ldflags -w -ldflags -X=github.com/ethersphere/bee.commit=${versionSpec.goVersionString}"; 47 + ldflags = lib.optionals ( lib.hasAttr "goVersionString" versionSpec) 48 + [ "-s" "-w" "-X=github.com/ethersphere/bee.commit=${versionSpec.goVersionString}" ]; 49 49 50 50 # Mimic the bee Makefile: without disabling CGO, two (transitive and 51 51 # unused) dependencies would fail to compile.