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.

+9 -103
-93
pkgs/servers/monitoring/prometheus/fritzbox-exporter-deps.nix
··· 1 - # This file was generated by https://github.com/kamilchm/go2nix v1.3.0 2 - [ 3 - { 4 - goPackagePath = "github.com/123Haynes/go-http-digest-auth-client"; 5 - fetch = { 6 - type = "git"; 7 - url = "https://github.com/123Haynes/go-http-digest-auth-client"; 8 - rev = "4c2ff1556cab0c8c14069d8d116c34db59c50c54"; 9 - sha256 = "0hpynnvwlxcdrrplvzibqk3179lzwkv8zlp03r6cd1vsd28b11ja"; 10 - }; 11 - } 12 - { 13 - goPackagePath = "github.com/beorn7/perks"; 14 - fetch = { 15 - type = "git"; 16 - url = "https://github.com/beorn7/perks"; 17 - rev = "4b2b341e8d7715fae06375aa633dbb6e91b3fb46"; 18 - sha256 = "1i1nz1f6g55xi2y3aiaz5kqfgvknarbfl4f0sx4nyyb4s7xb1z9x"; 19 - }; 20 - } 21 - { 22 - goPackagePath = "github.com/golang/protobuf"; 23 - fetch = { 24 - type = "git"; 25 - url = "https://github.com/golang/protobuf"; 26 - rev = "e91709a02e0e8ff8b86b7aa913fdc9ae9498e825"; 27 - sha256 = "16arbb7nwvs7lkpr7i9vrv8mk9h77zd3blzp3z9b0infqla4ddzc"; 28 - }; 29 - } 30 - { 31 - goPackagePath = "github.com/matttproud/golang_protobuf_extensions"; 32 - fetch = { 33 - type = "git"; 34 - url = "https://github.com/matttproud/golang_protobuf_extensions"; 35 - rev = "c182affec369e30f25d3eb8cd8a478dee585ae7d"; 36 - sha256 = "1xqsf9vpcrd4hp95rl6kgmjvkv1df4aicfw4l5vfcxcwxknfx2xs"; 37 - }; 38 - } 39 - { 40 - goPackagePath = "github.com/mxschmitt/golang-env-struct"; 41 - fetch = { 42 - type = "git"; 43 - url = "https://github.com/mxschmitt/golang-env-struct"; 44 - rev = "0c54aeca83972d1c7adf812b37dc53a6cbf58fb7"; 45 - sha256 = "19h840xhkglxwfbwx6w1qyndzg775b14kpz3xpq0lfrkfxdq0w9l"; 46 - }; 47 - } 48 - { 49 - goPackagePath = "github.com/pkg/errors"; 50 - fetch = { 51 - type = "git"; 52 - url = "https://github.com/pkg/errors"; 53 - rev = "27936f6d90f9c8e1145f11ed52ffffbfdb9e0af7"; 54 - sha256 = "0yzmgi6g4ak4q8y7w6x0n5cbinlcn8yc3gwgzy4yck00qdn25d6y"; 55 - }; 56 - } 57 - { 58 - goPackagePath = "github.com/prometheus/client_golang"; 59 - fetch = { 60 - type = "git"; 61 - url = "https://github.com/prometheus/client_golang"; 62 - rev = "3f6cbd95606771ac9f7b1c9247d2ca186cb72cb9"; 63 - sha256 = "1d9qc9jwqsgh6r5x5qkf6c6pkfb5jfhxls431ilhawn05fbyyypq"; 64 - }; 65 - } 66 - { 67 - goPackagePath = "github.com/prometheus/client_model"; 68 - fetch = { 69 - type = "git"; 70 - url = "https://github.com/prometheus/client_model"; 71 - rev = "fd36f4220a901265f90734c3183c5f0c91daa0b8"; 72 - sha256 = "1bs5d72k361llflgl94c22n0w53j30rsfh84smgk8mbjbcmjsaa5"; 73 - }; 74 - } 75 - { 76 - goPackagePath = "github.com/prometheus/common"; 77 - fetch = { 78 - type = "git"; 79 - url = "https://github.com/prometheus/common"; 80 - rev = "c873fb1f9420b83ee703b4361c61183b4619f74d"; 81 - sha256 = "1fmigir3c35nxmsj4bqwfp69kaxy415qk0ssi4wplcyd1g656lbg"; 82 - }; 83 - } 84 - { 85 - goPackagePath = "github.com/prometheus/procfs"; 86 - fetch = { 87 - type = "git"; 88 - url = "https://github.com/prometheus/procfs"; 89 - rev = "87a4384529e0652f5035fb5cc8095faf73ea9b0b"; 90 - sha256 = "1rjd7hf5nvsdw2jpqpapfw6nv3w3zphfhkrh5p7nryakal6kcgmh"; 91 - }; 92 - } 93 - ]
+9 -10
pkgs/servers/monitoring/prometheus/fritzbox-exporter.nix
··· 1 - { lib, buildGoPackage, fetchFromGitHub, nixosTests }: 1 + { lib, buildGoModule, fetchFromGitHub, nixosTests }: 2 2 3 - buildGoPackage rec { 3 + buildGoModule rec { 4 4 pname = "fritzbox-exporter"; 5 - version = "v1.0-32-g90fc0c5"; 6 - rev = "90fc0c572d3340803f7c2aafc4b097db7af1f871"; 5 + version = "unstable-2021-04-13"; 7 6 8 7 src = fetchFromGitHub { 9 - inherit rev; 8 + rev = "fd36539bd7db191b3734e17934b5f1e78e4e9829"; 10 9 owner = "mxschmitt"; 11 10 repo = "fritzbox_exporter"; 12 - sha256 = "08gcc60g187x1d14vh7n7s52zkqgj3fvg5v84i6dw55rmb6zzxri"; 11 + sha256 = "0w9gdcnfc61q6mzm95i7kphsf1rngn8rb6kz1b6knrh5d8w61p1n"; 13 12 }; 14 13 15 - goPackagePath = "github.com/mxschmitt/fritzbox_exporter"; 14 + subPackages = [ "cmd/exporter" ]; 16 15 17 - goDeps = ./fritzbox-exporter-deps.nix; 16 + vendorSha256 = "0k6bd052pjfg5c1ba1yhni8msv3wl512vfzy2hrk49jibh8h052n"; 18 17 19 18 passthru.tests = { inherit (nixosTests.prometheus-exporters) fritzbox; }; 20 19 21 20 meta = with lib; { 22 21 description = "Prometheus Exporter for FRITZ!Box (TR64 and UPnP)"; 23 - homepage = "https://github.com/ndecker/fritzbox_exporter"; 22 + homepage = "https://github.com/mxschmitt/fritzbox_exporter"; 24 23 license = licenses.asl20; 25 - maintainers = with maintainers; [ bachp flokli ]; 24 + maintainers = with maintainers; [ bachp flokli sbruder ]; 26 25 platforms = platforms.unix; 27 26 }; 28 27 }