prometheus-restic-exporter: 1.4.0 -> 1.5.0

This commit is contained in:
MinerSebas 2024-02-02 14:41:45 +01:00
parent 1892fc5dc6
commit e7a2d8aa18
2 changed files with 5 additions and 5 deletions

View File

@ -108,8 +108,8 @@ in
toRcloneVal = v: if lib.isBool v then lib.boolToString v else v; toRcloneVal = v: if lib.isBool v then lib.boolToString v else v;
in in
{ {
RESTIC_REPO_URL = cfg.repository; RESTIC_REPOSITORY = cfg.repository;
RESTIC_REPO_PASSWORD_FILE = cfg.passwordFile; RESTIC_PASSWORD_FILE = cfg.passwordFile;
LISTEN_ADDRESS = cfg.listenAddress; LISTEN_ADDRESS = cfg.listenAddress;
LISTEN_PORT = toString cfg.port; LISTEN_PORT = toString cfg.port;
REFRESH_INTERVAL = toString cfg.refreshInterval; REFRESH_INTERVAL = toString cfg.refreshInterval;

View File

@ -8,13 +8,13 @@
stdenvNoCC.mkDerivation rec { stdenvNoCC.mkDerivation rec {
pname = "prometheus-restic-exporter"; pname = "prometheus-restic-exporter";
version = "1.4.0"; version = "1.5.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "ngosang"; owner = "ngosang";
repo = "restic-exporter"; repo = "restic-exporter";
rev = version; rev = version;
hash = "sha256-Qwhlecginl5+V+iddN/vIHfJA1kQOZtscECsoD4LJPE="; hash = "sha256-SC2ZCIQ33RaFI9+l/WI6edNzGEtsxJ2bBdeGNMHuyqY=";
}; };
buildInputs = [ buildInputs = [
@ -26,7 +26,7 @@ stdenvNoCC.mkDerivation rec {
install -D -m0755 restic-exporter.py $out/bin/restic-exporter.py install -D -m0755 restic-exporter.py $out/bin/restic-exporter.py
substituteInPlace $out/bin/restic-exporter.py --replace \"restic\" \"${lib.makeBinPath [ restic ]}/restic\" substituteInPlace $out/bin/restic-exporter.py --replace-fail \"restic\" \"${lib.makeBinPath [ restic ]}/restic\"
patchShebangs $out/bin/restic-exporter.py patchShebangs $out/bin/restic-exporter.py