diff options
author | Nipe Setiawan Harefa <nipeharefa@gmail.com> | 2022-08-28 17:31:41 +0700 |
---|---|---|
committer | Nipe Setiawan Harefa <nipeharefa@gmail.com> | 2022-08-28 17:31:41 +0700 |
commit | 1729dc31de14ee9705e6ed64787987672cef8a10 (patch) | |
tree | e3962d4afe99e7f3c30bc5d9d5dbffc96870604d /pkgs/development/tools/air | |
parent | 712fd552d6fbbb5a91494510e5792026937f50c5 (diff) |
air: add version to ldflags
Diffstat (limited to 'pkgs/development/tools/air')
-rw-r--r-- | pkgs/development/tools/air/default.nix | 2 |
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; { |