prometheus: rename the generic function to buildPrometheus

Since the `generic` function is now exported it should have a less
generic name, pun intended.
This commit is contained in:
Bas van Dijk 2019-04-08 16:40:42 +02:00
parent 670359e8da
commit b6fdd1a0fc

View File

@ -3,7 +3,7 @@
let
goPackagePath = "github.com/prometheus/prometheus";
in rec {
generic = { version, sha256, doCheck ? true, ... }@attrs:
buildPrometheus = { version, sha256, doCheck ? true, ... }@attrs:
let attrs' = builtins.removeAttrs attrs ["version" "sha256"]; in
buildGoPackage ({
name = "prometheus-${version}";
@ -42,12 +42,12 @@ in rec {
};
} // attrs');
prometheus_1 = generic {
prometheus_1 = buildPrometheus {
version = "1.8.2";
sha256 = "088flpg3qgnj9afl9vbaa19v2s1d21yxy38nrlv5m7cxwy2pi5pv";
};
prometheus_2 = generic {
prometheus_2 = buildPrometheus {
version = "2.6.0";
sha256 = "1d9zwzs280pw9zspqwp7xx3ji04lfg2v9l5qhrfy3y633ghcmpxz";
};