diff --git a/nixos/modules/services/monitoring/prometheus/exporters/imap-mailstat.nix b/nixos/modules/services/monitoring/prometheus/exporters/imap-mailstat.nix index c5d97dc12238..eaec8041d294 100644 --- a/nixos/modules/services/monitoring/prometheus/exporters/imap-mailstat.nix +++ b/nixos/modules/services/monitoring/prometheus/exporters/imap-mailstat.nix @@ -94,8 +94,8 @@ in serviceConfig = { ExecStart = '' ${pkgs.prometheus-imap-mailstat-exporter}/bin/imap-mailstat-exporter \ - -config ${createConfigFile cfg.accounts} \ - ${optionalString cfg.oldestUnseenDate "-oldestunseendate"} \ + --config.file="${createConfigFile cfg.accounts}" \ + ${optionalString cfg.oldestUnseenDate "--oldestunseen.feature"} \ ${concatStringsSep " \\\n " cfg.extraFlags} ''; }; diff --git a/pkgs/by-name/pr/prometheus-imap-mailstat-exporter/package.nix b/pkgs/by-name/pr/prometheus-imap-mailstat-exporter/package.nix index eab71766d14c..104b52d01c0f 100644 --- a/pkgs/by-name/pr/prometheus-imap-mailstat-exporter/package.nix +++ b/pkgs/by-name/pr/prometheus-imap-mailstat-exporter/package.nix @@ -7,16 +7,16 @@ buildGoModule rec { pname = "imap-mailstat-exporter"; - version = "0.0.1"; + version = "0.7.1"; src = fetchFromGitHub { owner = "bt909"; repo = "imap-mailstat-exporter"; - tag = "v${version}"; - hash = "sha256-aR/94C9SI+FPs3zg3bpexmgGYrhxghyHwpXj25x0yuw="; + tag = "${version}"; + hash = "sha256-dinHRHoTVc/0Lu+TzzmfoCyoDZQQhXw8AOlgbH46hm0="; }; - vendorHash = "sha256-M5Ho4CiO5DC6mWzenXEo2pu0WLHj5S8AV3oEFwD31Sw="; + vendorHash = "sha256-k3FjfIaNm6408I4uqmJpZsGgMiHel+NUtBclbGKTtZ4="; nativeBuildInputs = [ installShellFiles ];