flake rework, dep updates

This commit is contained in:
Robin Appelman 2024-02-03 16:13:06 +01:00
commit 881c06173b
8 changed files with 738 additions and 521 deletions

29
package.nix Normal file
View file

@ -0,0 +1,29 @@
{
rustPlatform,
openssl,
pkg-config,
lib,
}: let
inherit (lib.sources) sourceByRegex;
src = sourceByRegex ./. ["Cargo.*" "(src)(/.*)?"];
in
rustPlatform.buildRustPackage rec {
pname = "wifi-prometheus-exporter";
version = "0.1.0";
inherit src;
buildInputs = [
openssl
];
nativeBuildInputs = [
pkg-config
];
doCheck = false;
cargoLock = {
lockFile = ./Cargo.lock;
};
}