pvemon/flake.nix
illustris ce4c98cbcb
init
2023-10-02 12:12:20 +05:30

39 lines
852 B
Nix

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:juliosueiras-nix/nix-utils;
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 = "0.1.0";
src = ./src;
propagatedBuildInputs = with python3Packages; [
pexpect
prometheus-client
psutil
];
meta = {
inherit description;
license = lib.licenses.mit;
};
};
default = pvemon;
deb = debBundler.bundlers.deb {
inherit system;
program = "${default}/bin/${default.pname}";
};
};
};
}