Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
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";
|
|
};
|
|
}
|