git.iko.soy/typeable/nixpkgs
on master help sign in
teler: set version
commitfc0f84cfe1f75a6b94a2377d079a0dc27f95e50b authorFabian Affolter <mail@fabian-affolter.ch> dateSun 21 Mar 2021, 20:11 (6 years ago) parent718ff92
1 file changed+6−2
pkgs/tools/security/teler/default.nix+6−2
pkgs/tools/security/teler/default.nix+6−2
@@ -1,6 +1,6 @@
1−{ buildGoModule
1+{ lib
2+, buildGoModule
23, fetchFromGitHub
3−, lib
44}:
55
66buildGoModule rec {
@@ -16,6 +16,10 @@ buildGoModule rec {
1616
1717 vendorSha256 = "sha256-KvUnDInUqFW7FypgsppIBQZKNu6HVsEeHtGwdqYtoys=";
1818
19+ preBuild = ''
20+ buildFlagsArray+=("-ldflags" "-s -w -X ktbs.dev/teler/common.Version=${version}")
21+ '';
22+
1923 # test require internet access
2024 doCheck = false;
2125