Skip to content

Commit c59ea8b

Browse files
authored
Merge pull request #95839 from WilliButz/update/grafana-7.1.3
grafana: 7.0.4 -> 7.1.3, enable checkPhase
2 parents 88baea4 + 003fa57 commit c59ea8b

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

pkgs/servers/monitoring/grafana/default.nix

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,24 @@
1-
{ lib, buildGoModule, fetchurl, fetchFromGitHub }:
1+
{ lib, buildGoModule, fetchurl, fetchFromGitHub, nixosTests }:
22

33
buildGoModule rec {
44
pname = "grafana";
5-
version = "7.0.4";
5+
version = "7.1.3";
66

77
excludedPackages = [ "release_publisher" ];
88

99
src = fetchFromGitHub {
1010
rev = "v${version}";
1111
owner = "grafana";
1212
repo = "grafana";
13-
sha256 = "16vdbxq9vhv71jjk689xx0nn3qr4s5ybzbp41dm09pppvxzibpg7";
13+
sha256 = "1acvvqsgwfrkqmbgzdxfa8shwmx7c91agaqv3gsfgpqkqwp3pnmh";
1414
};
1515

1616
srcStatic = fetchurl {
1717
url = "https://dl.grafana.com/oss/release/grafana-${version}.linux-amd64.tar.gz";
18-
sha256 = "1362rwmpv1y32w5m1fd9vqffs32244f0h7d5jm5cigiq2l7ix7n2";
18+
sha256 = "0c72xmazr3rgiccrqcy02w30159vsq9d78dkqf5c2yjqn8zzwf98";
1919
};
2020

21-
vendorSha256 = "00xvpxhnvxdf030978paywl794mlmgqzd94b64hh67946acnbjcl";
22-
23-
doCheck = false;
21+
vendorSha256 = "11zi7a4mqi80m5z4zcrc6wnzhgk6xnmzisrk2v4vpmfp33s732lz";
2422

2523
postPatch = ''
2624
substituteInPlace pkg/cmd/grafana-server/main.go \
@@ -33,6 +31,8 @@ buildGoModule rec {
3331
mv grafana-*/{public,conf,tools} $out/share/grafana/
3432
'';
3533

34+
passthru.tests = { inherit (nixosTests) grafana; };
35+
3636
meta = with lib; {
3737
description = "Gorgeous metric viz, dashboards & editors for Graphite, InfluxDB & OpenTSDB";
3838
license = licenses.asl20;

0 commit comments

Comments
 (0)