@@ -1,8 +1,8 @@
1−{ lib, buildGoModule, fetchurl, fetchFromGitHub }:
1+{ lib, buildGoModule, fetchurl, fetchFromGitHub, nixosTests }:
22
33buildGoModule rec {
44 pname = "grafana";
5− version = "7.0.4";
5+ version = "7.1.3";
66
77 excludedPackages = [ "release_publisher" ];
88
@@ -10,17 +10,15 @@ buildGoModule rec {
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;