prometheus-smokeping-prober: cleanup version
This commit is contained in:
parent
3ed9e7d6d5
commit
331e2a1c10
@ -1,18 +1,14 @@
|
||||
{ lib, buildGoModule, fetchFromGitHub, nixosTests }:
|
||||
|
||||
let
|
||||
baseVersion = "0.4.2";
|
||||
commit = "722200c4adbd6d1e5d847dfbbd9dec07aa4ca38d";
|
||||
in
|
||||
buildGoModule rec {
|
||||
pname = "smokeping_prober";
|
||||
version = "${baseVersion}-g${commit}";
|
||||
version = "0.4.2";
|
||||
|
||||
ldflags = let
|
||||
setVars = {
|
||||
Version = baseVersion;
|
||||
Revision = commit;
|
||||
Branch = commit;
|
||||
setVars = rec {
|
||||
Version = version;
|
||||
Revision = "722200c4adbd6d1e5d847dfbbd9dec07aa4ca38d";
|
||||
Branch = Revision;
|
||||
BuildUser = "nix";
|
||||
};
|
||||
varFlags = lib.concatStringsSep " " (lib.mapAttrsToList (name: value: "-X github.com/prometheus/common/version.${name}=${value}") setVars);
|
||||
@ -21,9 +17,9 @@ buildGoModule rec {
|
||||
];
|
||||
|
||||
src = fetchFromGitHub {
|
||||
rev = commit;
|
||||
owner = "SuperQ";
|
||||
repo = "smokeping_prober";
|
||||
rev = "v${version}";
|
||||
sha256 = "1lpcjip6qxhalldgm6i2kgbajfqy3vwfyv9jy0jdpii13lv6mzlz";
|
||||
};
|
||||
vendorSha256 = "0p2jmlxpvpaqc445j39b4z4i3mnjrm25khv3sq6ylldcgfd31vz8";
|
||||
|
Loading…
Reference in New Issue
Block a user