rec { description = "PVE prometheus exporter that collects metrics locally rather than use the PVE API"; inputs = { nixpkgs.url = github:nixos/nixpkgs/nixos-unstable; debBundler = { url = github:illustris/flake; inputs.nixpkgs.follows = "nixpkgs"; }; }; outputs = { self, nixpkgs, debBundler }: { packages.x86_64-linux = with nixpkgs.legacyPackages.x86_64-linux; rec { pvemon = python3Packages.buildPythonApplication { pname = "pvemon"; version = "1.1.2"; src = ./src; propagatedBuildInputs = with python3Packages; [ pexpect prometheus-client psutil ]; meta = { inherit description; license = lib.licenses.mit; }; }; default = pvemon; deb = debBundler.bundlers.x86_64-linux.deb default; updateRelease = writeScriptBin "update-release" (builtins.readFile ./utils/update-release.sh); }; }; }