diff options
author | Vincent Ambo <mail@tazj.in> | 2022-10-02T13·33+0300 |
---|---|---|
committer | clbot <clbot@tvl.fyi> | 2022-10-02T13·39+0000 |
commit | c9e4d9c06b71a541b2d3aa87d1bdd02926668e48 (patch) | |
tree | e93b5e68e234b122d08e2f523fe20f9e9dea0d67 /tools | |
parent | 3f5e28e756e0aa7564cb395d3cbe7fc605f227d7 (diff) |
chore(nixery): use `ldflags` parameter instead of `buildFlagsArray` r/5013
The latter has been deprecated in nixpkgs. Relates to b/200 Change-Id: I42871ce3eb54ebf092909f033b43936b9610d982 Reviewed-on: https://cl.tvl.fyi/c/depot/+/6836 Autosubmit: tazjin <tazjin@tvl.su> Reviewed-by: sterni <sternenseemann@systemli.org> Tested-by: BuildkiteCI
Diffstat (limited to 'tools')
-rw-r--r-- | tools/nixery/default.nix | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tools/nixery/default.nix b/tools/nixery/default.nix index c8e037594c5f..4541e89e5e5b 100644 --- a/tools/nixery/default.nix +++ b/tools/nixery/default.nix @@ -74,8 +74,11 @@ depot.nix.readTree.drvTargets rec { # Needs to be updated after every modification of go.mod/go.sum vendorHash = "sha256-io9NCeZmjCZPLmII3ajXIsBWbT40XiW8ncXOuUDabbo="; - buildFlagsArray = [ - "-ldflags=-s -w -X main.version=${nixery-commit-hash}" + ldflags = [ + "-s" + "-w" + "-X" + "main.version=${nixery-commit-hash}" ]; nativeBuildInputs = [ makeWrapper ]; |