mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-09-23 13:48:21 +03:00
Merge pull request #302709 from r-ryantm/auto-update/grafana-loki
grafana-loki,promtail: 2.9.6 -> 3.0.0
This commit is contained in:
commit
ae58ca4c0d
@ -5,17 +5,19 @@
|
||||
, makeWrapper
|
||||
, nixosTests
|
||||
, systemd
|
||||
, testers
|
||||
, grafana-loki
|
||||
}:
|
||||
|
||||
buildGoModule rec {
|
||||
version = "2.9.6";
|
||||
version = "3.0.0";
|
||||
pname = "grafana-loki";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "grafana";
|
||||
repo = "loki";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-79hK7axHf6soku5DvdXkE/0K4WKc4pnS9VMbVc1FS2I=";
|
||||
hash = "sha256-2+OST6bKIjuhrXJKA+8vUERKT1/min7tN8oFxKn3L74=";
|
||||
};
|
||||
|
||||
vendorHash = null;
|
||||
@ -38,9 +40,15 @@ buildGoModule rec {
|
||||
--prefix LD_LIBRARY_PATH : "${lib.getLib systemd}/lib"
|
||||
'';
|
||||
|
||||
passthru.tests = { inherit (nixosTests) loki; };
|
||||
passthru.tests = {
|
||||
inherit (nixosTests) loki;
|
||||
version = testers.testVersion {
|
||||
command = "loki --version";
|
||||
package = grafana-loki;
|
||||
};
|
||||
};
|
||||
|
||||
ldflags = let t = "github.com/grafana/loki/pkg/util/build"; in [
|
||||
ldflags = let t = "github.com/grafana/loki/v3/pkg/util/build"; in [
|
||||
"-s"
|
||||
"-w"
|
||||
"-X ${t}.Version=${version}"
|
||||
|
Loading…
Reference in New Issue
Block a user