about summary refs log tree commit diff
path: root/tools/nixery/default.nix
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2022-10-02T13·33+0300
committerclbot <clbot@tvl.fyi>2022-10-02T13·39+0000
commitc9e4d9c06b71a541b2d3aa87d1bdd02926668e48 (patch)
treee93b5e68e234b122d08e2f523fe20f9e9dea0d67 /tools/nixery/default.nix
parent3f5e28e756e0aa7564cb395d3cbe7fc605f227d7 (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/nixery/default.nix')
-rw-r--r--tools/nixery/default.nix7
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 ];