31 lines
819 B
Nix
31 lines
819 B
Nix
|
|
{
|
||
|
|
lib,
|
||
|
|
mkDiscoursePlugin,
|
||
|
|
fetchFromGitHub,
|
||
|
|
}:
|
||
|
|
|
||
|
|
mkDiscoursePlugin {
|
||
|
|
bundlerEnvArgs.gemdir = ./.;
|
||
|
|
name = "discourse-prometheus";
|
||
|
|
src = fetchFromGitHub {
|
||
|
|
owner = "discourse";
|
||
|
|
repo = "discourse-prometheus";
|
||
|
|
rev = "f46906e1d555f6838d74ea38d5037264cc1020b0";
|
||
|
|
sha256 = "sha256-czrxhH0L+vCZA8DKN6acW///iWJs9GIppEeaP2MOJBQ=";
|
||
|
|
};
|
||
|
|
|
||
|
|
patches = [
|
||
|
|
# The metrics collector tries to run git to get the commit id but fails
|
||
|
|
# because we don't run Discourse from a Git repository.
|
||
|
|
./no-git-version.patch
|
||
|
|
./spec-import-fix-abi-version.patch
|
||
|
|
];
|
||
|
|
|
||
|
|
meta = with lib; {
|
||
|
|
homepage = "https://github.com/discourse/discourse-prometheus";
|
||
|
|
maintainers = with maintainers; [ dpausp ];
|
||
|
|
license = licenses.mit;
|
||
|
|
description = "Official Discourse Plugin for Prometheus Monitoring";
|
||
|
|
};
|
||
|
|
}
|