mirror of
https://codeberg.org/icewind/wifi-prometheus-exporter.git
synced 2026-10-01 07:54:06 +02:00
29 lines
447 B
Nix
29 lines
447 B
Nix
{
|
|
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;
|
|
};
|
|
}
|