about summary refs log tree commit diff
path: root/pkgs/development/tools/air
diff options
context:
space:
mode:
authorNipe Setiawan Harefa <nipeharefa@gmail.com>2022-08-28 17:31:41 +0700
committerNipe Setiawan Harefa <nipeharefa@gmail.com>2022-08-28 17:31:41 +0700
commit1729dc31de14ee9705e6ed64787987672cef8a10 (patch)
treee3962d4afe99e7f3c30bc5d9d5dbffc96870604d /pkgs/development/tools/air
parent712fd552d6fbbb5a91494510e5792026937f50c5 (diff)
air: add version to ldflags
Diffstat (limited to 'pkgs/development/tools/air')
-rw-r--r--pkgs/development/tools/air/default.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkgs/development/tools/air/default.nix b/pkgs/development/tools/air/default.nix
index 96fbdaa5d6a04..3b4103626b8b8 100644
--- a/pkgs/development/tools/air/default.nix
+++ b/pkgs/development/tools/air/default.nix
@@ -13,6 +13,8 @@ buildGoModule rec {
 
   vendorSha256 = "sha256-+hZpCIDASPerI7Wetpx+ah2H5ODjoeyoqUi+uFwR/9A=";
 
+   ldflags = [ "-s" "-w" "-X=main.airVersion=${version}" ];
+
   subPackages = [ "." ];
 
   meta = with lib; {