Skip to content

Commit

Permalink
prometheus-rasdaemon-exporter: backport fixes (#369519)
Browse files Browse the repository at this point in the history
  • Loading branch information
mweinelt authored Dec 31, 2024
2 parents 06f2f12 + f7dea2c commit 9b07371
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions pkgs/by-name/pr/prometheus-rasdaemon-exporter/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
lib,
python3Packages,
fetchFromGitHub,
fetchpatch2,
}:

python3Packages.buildPythonApplication {
Expand All @@ -16,6 +17,25 @@ python3Packages.buildPythonApplication {
hash = "sha256-O0Zzog+5jDixFRGbqmjPYi6JDpHbxpU4hKfsqTnexS8=";
};

patches = [
# Normalization of metric names
# https://github.com/sanecz/prometheus-rasdaemon-exporter/pull/1
(fetchpatch2 {
url = "https://github.com/sanecz/prometheus-rasdaemon-exporter/commit/46d379ba205c2340a0b266bf3cd48ec88ce025d0.patch";
hash = "sha256-kqo1Tjn51M1FzArS4K0ylQ2/rFDOAiZU3OUt/oBhGhM=";
})
(fetchpatch2 {
url = "https://github.com/sanecz/prometheus-rasdaemon-exporter/commit/c9ab08e8918497edb8f1ab0f933fa270cb7860a8.patch";
hash = "sha256-QtjzXuxPG7e+cgUDVbAVNY4VyBp3W5+vQDAvFJ9t92I=";
})
# Fix sqlite3.connect URI passing
# https://github.com/sanecz/prometheus-rasdaemon-exporter/pull/2
(fetchpatch2 {
url = "https://github.com/sanecz/prometheus-rasdaemon-exporter/commit/52f6c47b77f480cd7f83853a2baffffb45f77b37.patch";
hash = "sha256-XYeWMkAhWJIOUKLeTstIJr3P37Jwt8tzRURCvlrrxVs=";
})
];

build-system = with python3Packages; [
setuptools
setuptools-scm
Expand Down

0 comments on commit 9b07371

Please sign in to comment.