Skip to content

Commit

Permalink
prometheus: 2.22.2 -> 2.23.0
Browse files Browse the repository at this point in the history
ChangeLog: https://github.com/prometheus/prometheus/releases/tag/v2.23.0

* Applied a patch to fix a regression in release 2.23[1].

[1] prometheus/prometheus#8144
  • Loading branch information
Ma27 committed Dec 23, 2020
1 parent 39ebc63 commit 5a26fb3
Show file tree
Hide file tree
Showing 2 changed files with 741 additions and 683 deletions.
16 changes: 13 additions & 3 deletions pkgs/servers/monitoring/prometheus/default.nix
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
{ stdenv, lib, go, buildGoPackage, fetchFromGitHub, mkYarnPackage, nixosTests }:
{ stdenv, lib, go, buildGoPackage, fetchFromGitHub, mkYarnPackage, nixosTests
, fetchpatch
}:

let
version = "2.22.2";
version = "2.23.0";

src = fetchFromGitHub {
rev = "v${version}";
owner = "prometheus";
repo = "prometheus";
sha256 = "04pf3shdfd25wf8snkan5hzv1gjzazjw06i11xaamnc8gfahnzdv";
sha256 = "sha256-UQ1r8271EiZDU/h2zta6toMRfk2GjXol8GexYL9n+BE=";
};

webui = mkYarnPackage {
Expand All @@ -29,6 +31,14 @@ in buildGoPackage rec {

goPackagePath = "github.com/prometheus/prometheus";

patches = [
# Fix https://github.com/prometheus/prometheus/issues/8144
(fetchpatch {
url = "https://github.com/prometheus/prometheus/commit/8b64b70fe4a5aa2877c95aa12c6798b12d3ff7ec.patch";
sha256 = "sha256-RuXT5pBXv8z6WoE59KNGh+OXr1KGLGWs/n0Hjf4BuH8=";
})
];

postPatch = ''
ln -s ${webui.node_modules} web/ui/react-app/node_modules
ln -s ${webui} web/ui/static/react
Expand Down
Loading

0 comments on commit 5a26fb3

Please sign in to comment.