diff options
author | Fabian Affolter <mail@fabian-affolter.ch> | 2021-03-21 20:11:00 +0100 |
---|---|---|
committer | Fabian Affolter <mail@fabian-affolter.ch> | 2021-03-21 20:11:00 +0100 |
commit | fc0f84cfe1f75a6b94a2377d079a0dc27f95e50b (patch) | |
tree | 91409300e01a96bb133406a688dd8655d0a41d75 /pkgs/tools/security/teler | |
parent | 718ff922920afe8219334e548d604cb084b1bd6c (diff) |
teler: set version
Diffstat (limited to 'pkgs/tools/security/teler')
-rw-r--r-- | pkgs/tools/security/teler/default.nix | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/pkgs/tools/security/teler/default.nix b/pkgs/tools/security/teler/default.nix index 1c4cba04d5677..0ef2f7509b675 100644 --- a/pkgs/tools/security/teler/default.nix +++ b/pkgs/tools/security/teler/default.nix @@ -1,6 +1,6 @@ -{ buildGoModule +{ lib +, buildGoModule , fetchFromGitHub -, lib }: buildGoModule rec { @@ -16,6 +16,10 @@ buildGoModule rec { vendorSha256 = "sha256-KvUnDInUqFW7FypgsppIBQZKNu6HVsEeHtGwdqYtoys="; + preBuild = '' + buildFlagsArray+=("-ldflags" "-s -w -X ktbs.dev/teler/common.Version=${version}") + ''; + # test require internet access doCheck = false; |