prometheus-fritzbox-exporter: 1.0-32-g90fc0c5 -> unstable-2021-04-13

This also changes the derivation to use buildGoModule instead of the
legacy buildGoPackage and updates the homepage meta URL to point to the
fork we use.
This commit is contained in:
Simon Bruder 2021-08-20 23:07:39 +02:00
parent 200f2a7c58
commit f115e51587
No known key found for this signature in database
GPG key ID: 8D3C82F9F309F8EC
2 changed files with 9 additions and 103 deletions

View file

@ -1,93 +0,0 @@
# This file was generated by https://github.com/kamilchm/go2nix v1.3.0
[
{
goPackagePath = "github.com/123Haynes/go-http-digest-auth-client";
fetch = {
type = "git";
url = "https://github.com/123Haynes/go-http-digest-auth-client";
rev = "4c2ff1556cab0c8c14069d8d116c34db59c50c54";
sha256 = "0hpynnvwlxcdrrplvzibqk3179lzwkv8zlp03r6cd1vsd28b11ja";
};
}
{
goPackagePath = "github.com/beorn7/perks";
fetch = {
type = "git";
url = "https://github.com/beorn7/perks";
rev = "4b2b341e8d7715fae06375aa633dbb6e91b3fb46";
sha256 = "1i1nz1f6g55xi2y3aiaz5kqfgvknarbfl4f0sx4nyyb4s7xb1z9x";
};
}
{
goPackagePath = "github.com/golang/protobuf";
fetch = {
type = "git";
url = "https://github.com/golang/protobuf";
rev = "e91709a02e0e8ff8b86b7aa913fdc9ae9498e825";
sha256 = "16arbb7nwvs7lkpr7i9vrv8mk9h77zd3blzp3z9b0infqla4ddzc";
};
}
{
goPackagePath = "github.com/matttproud/golang_protobuf_extensions";
fetch = {
type = "git";
url = "https://github.com/matttproud/golang_protobuf_extensions";
rev = "c182affec369e30f25d3eb8cd8a478dee585ae7d";
sha256 = "1xqsf9vpcrd4hp95rl6kgmjvkv1df4aicfw4l5vfcxcwxknfx2xs";
};
}
{
goPackagePath = "github.com/mxschmitt/golang-env-struct";
fetch = {
type = "git";
url = "https://github.com/mxschmitt/golang-env-struct";
rev = "0c54aeca83972d1c7adf812b37dc53a6cbf58fb7";
sha256 = "19h840xhkglxwfbwx6w1qyndzg775b14kpz3xpq0lfrkfxdq0w9l";
};
}
{
goPackagePath = "github.com/pkg/errors";
fetch = {
type = "git";
url = "https://github.com/pkg/errors";
rev = "27936f6d90f9c8e1145f11ed52ffffbfdb9e0af7";
sha256 = "0yzmgi6g4ak4q8y7w6x0n5cbinlcn8yc3gwgzy4yck00qdn25d6y";
};
}
{
goPackagePath = "github.com/prometheus/client_golang";
fetch = {
type = "git";
url = "https://github.com/prometheus/client_golang";
rev = "3f6cbd95606771ac9f7b1c9247d2ca186cb72cb9";
sha256 = "1d9qc9jwqsgh6r5x5qkf6c6pkfb5jfhxls431ilhawn05fbyyypq";
};
}
{
goPackagePath = "github.com/prometheus/client_model";
fetch = {
type = "git";
url = "https://github.com/prometheus/client_model";
rev = "fd36f4220a901265f90734c3183c5f0c91daa0b8";
sha256 = "1bs5d72k361llflgl94c22n0w53j30rsfh84smgk8mbjbcmjsaa5";
};
}
{
goPackagePath = "github.com/prometheus/common";
fetch = {
type = "git";
url = "https://github.com/prometheus/common";
rev = "c873fb1f9420b83ee703b4361c61183b4619f74d";
sha256 = "1fmigir3c35nxmsj4bqwfp69kaxy415qk0ssi4wplcyd1g656lbg";
};
}
{
goPackagePath = "github.com/prometheus/procfs";
fetch = {
type = "git";
url = "https://github.com/prometheus/procfs";
rev = "87a4384529e0652f5035fb5cc8095faf73ea9b0b";
sha256 = "1rjd7hf5nvsdw2jpqpapfw6nv3w3zphfhkrh5p7nryakal6kcgmh";
};
}
]

View file

@ -1,28 +1,27 @@
{ lib, buildGoPackage, fetchFromGitHub, nixosTests }:
{ lib, buildGoModule, fetchFromGitHub, nixosTests }:
buildGoPackage rec {
buildGoModule rec {
pname = "fritzbox-exporter";
version = "v1.0-32-g90fc0c5";
rev = "90fc0c572d3340803f7c2aafc4b097db7af1f871";
version = "unstable-2021-04-13";
src = fetchFromGitHub {
inherit rev;
rev = "fd36539bd7db191b3734e17934b5f1e78e4e9829";
owner = "mxschmitt";
repo = "fritzbox_exporter";
sha256 = "08gcc60g187x1d14vh7n7s52zkqgj3fvg5v84i6dw55rmb6zzxri";
sha256 = "0w9gdcnfc61q6mzm95i7kphsf1rngn8rb6kz1b6knrh5d8w61p1n";
};
goPackagePath = "github.com/mxschmitt/fritzbox_exporter";
subPackages = [ "cmd/exporter" ];
goDeps = ./fritzbox-exporter-deps.nix;
vendorSha256 = "0k6bd052pjfg5c1ba1yhni8msv3wl512vfzy2hrk49jibh8h052n";
passthru.tests = { inherit (nixosTests.prometheus-exporters) fritzbox; };
meta = with lib; {
description = "Prometheus Exporter for FRITZ!Box (TR64 and UPnP)";
homepage = "https://github.com/ndecker/fritzbox_exporter";
homepage = "https://github.com/mxschmitt/fritzbox_exporter";
license = licenses.asl20;
maintainers = with maintainers; [ bachp flokli ];
maintainers = with maintainers; [ bachp flokli sbruder ];
platforms = platforms.unix;
};
}