From c9e4d9c06b71a541b2d3aa87d1bdd02926668e48 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sun, 2 Oct 2022 16:33:10 +0300 Subject: chore(nixery): use `ldflags` parameter instead of `buildFlagsArray` 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 Reviewed-by: sterni Tested-by: BuildkiteCI --- tools/nixery/default.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'tools') 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 ]; -- cgit 1.4.1