Skip to content

Commit

Permalink
chore(nixery): use ldflags parameter instead of buildFlagsArray
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-by: sterni <[email protected]>
Tested-by: BuildkiteCI
  • Loading branch information
tazjin authored and clbot committed Oct 2, 2022
1 parent 31515e7 commit 644521d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 ];
Expand Down

0 comments on commit 644521d

Please sign in to comment.