about summary refs log tree commit diff
path: root/pkgs/tools
diff options
context:
space:
mode:
authorDoron Behar <doron.behar@gmail.com>2020-09-13 00:36:03 +0300
committerDoron Behar <doron.behar@gmail.com>2020-09-13 00:36:03 +0300
commitc1f4bf78a8b2edb14b888f159576890aace744df (patch)
tree689d16288b8d3fc528b273f18577a13ba452db20 /pkgs/tools
parent1435f5be15d7c294016888abcffd2bc1aa084916 (diff)
shadowfox: Add ldflags
shadowfox-updater compares the version of itself with that of the latest
version released upon startup. If it doesn't know it's own version, this
comparison always falsely leads to it suggesting the user to update it
upon startup, where in fact it is updated. This is a confusing behavior
only NixOS users suffer and now it's solved.
Diffstat (limited to 'pkgs/tools')
-rw-r--r--pkgs/tools/networking/shadowfox/default.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/tools/networking/shadowfox/default.nix b/pkgs/tools/networking/shadowfox/default.nix
index 5f7247248e734..d1cc33457737f 100644
--- a/pkgs/tools/networking/shadowfox/default.nix
+++ b/pkgs/tools/networking/shadowfox/default.nix
@@ -15,7 +15,9 @@ buildGoModule rec {
 
   doCheck = false;
 
-  buildFlags = [ "--tags" "release" ];
+  buildFlagsArray = [
+    "-ldflags=-X main.tag=v${version}"
+  ];
 
   meta = with stdenv.lib; {
     description = ''