diff --git a/pkgs/by-name/pr/prometheus-pushgateway/package.nix b/pkgs/by-name/pr/prometheus-pushgateway/package.nix index 4a99a7435d2a..c3a3c8e50fd5 100644 --- a/pkgs/by-name/pr/prometheus-pushgateway/package.nix +++ b/pkgs/by-name/pr/prometheus-pushgateway/package.nix @@ -6,14 +6,14 @@ versionCheckHook, }: -buildGoModule rec { +buildGoModule (finalAttrs: { pname = "pushgateway"; version = "1.11.2"; src = fetchFromGitHub { owner = "prometheus"; repo = "pushgateway"; - rev = "v${version}"; + rev = "v${finalAttrs.version}"; sha256 = "sha256-Mc4yEd9CRfLZ4ZpcMnwQpoIXQpUerdxYD90FWRBzS20="; }; @@ -22,9 +22,9 @@ buildGoModule rec { ldflags = [ "-s" "-w" - "-X github.com/prometheus/common/version.Version=${version}" - "-X github.com/prometheus/common/version.Revision=${version}" - "-X github.com/prometheus/common/version.Branch=${version}" + "-X github.com/prometheus/common/version.Version=${finalAttrs.version}" + "-X github.com/prometheus/common/version.Revision=${finalAttrs.version}" + "-X github.com/prometheus/common/version.Branch=${finalAttrs.version}" "-X github.com/prometheus/common/version.BuildUser=nix@nixpkgs" "-X github.com/prometheus/common/version.BuildDate=19700101-00:00:00" ]; @@ -45,4 +45,4 @@ buildGoModule rec { license = licenses.asl20; maintainers = with maintainers; [ benley ]; }; -} +})