Merge pull request #135430 from Ma27/bump-knot-exporter

This commit is contained in:
Sandro 2021-08-23 13:35:51 +02:00 committed by GitHub
commit 6df01218a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,25 +1,16 @@
{ stdenv, fetchFromGitHub, lib, python3, nixosTests, fetchpatch }: { stdenv, fetchFromGitHub, lib, python3, nixosTests }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "knot-exporter"; pname = "knot-exporter";
version = "unstable-2020-01-30"; version = "unstable-2021-08-21";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "ghedo"; owner = "ghedo";
repo = "knot_exporter"; repo = "knot_exporter";
rev = "21dd46b401e0c1aea0b173e19462cdf89e1f444e"; rev = "b18eb7db735b50280f0815497475f4c7092a6550";
sha256 = "sha256-4au4lpaq3jcqC2JXdCcf8h+YN8Nmm4eE0kZwA+1rWlc="; sha256 = "sha256-FGzkO/KHDhkM3PA2urNQcrMi3MHADkd0YwAvu1jvfrU=";
}; };
patches = [
# Fixes a crash with all metrics enabled. See
# https://github.com/ghedo/knot_exporter/pull/6 for further context.
(fetchpatch {
url = "https://github.com/ghedo/knot_exporter/commit/2317476e080369450ae51a707ccd30d4b89d680f.patch";
sha256 = "sha256-yEPu8EE1V/draNx9DeMrPj+bMfJRxauweo33dITl4AA=";
})
];
dontBuild = true; dontBuild = true;
nativeBuildInputs = [ python3.pkgs.wrapPython ]; nativeBuildInputs = [ python3.pkgs.wrapPython ];