about summary refs log tree commit diff
path: root/pkgs/applications/misc/ticker
diff options
context:
space:
mode:
authorzowoq <59103226+zowoq@users.noreply.github.com>2021-08-21 18:23:47 +1000
committerzowoq <59103226+zowoq@users.noreply.github.com>2021-08-21 18:23:47 +1000
commit950b52dec0e9d7066d14a7842e2cfd308677141c (patch)
tree78ddaff36200289ff908896c115115ebf86dc32b /pkgs/applications/misc/ticker
parenta1cdf552dce2469e9088e0c86fa33eb34b0ca23f (diff)
ticker: buildFlagsArray -> ldflags
Diffstat (limited to 'pkgs/applications/misc/ticker')
-rw-r--r--pkgs/applications/misc/ticker/default.nix6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgs/applications/misc/ticker/default.nix b/pkgs/applications/misc/ticker/default.nix
index a3e2dc11c6f7e..8e70a70423b91 100644
--- a/pkgs/applications/misc/ticker/default.nix
+++ b/pkgs/applications/misc/ticker/default.nix
@@ -16,9 +16,9 @@ buildGoModule rec {
 
   vendorSha256 = "sha256-XBfTVd3X3IDxLCAaNnijf6E5bw+AZ94UdOG9w7BOdBU=";
 
-  preBuild = ''
-    buildFlagsArray+=("-ldflags" "-s -w -X github.com/achannarasappa/ticker/cmd.Version=v${version}")
-  '';
+  ldflags = [
+    "-s" "-w" "-X github.com/achannarasappa/ticker/cmd.Version=v${version}"
+  ];
 
   # Tests require internet
   doCheck = false;