Initial commit for rewrite

This commit is contained in:
2025-04-05 00:50:12 +03:00
commit 5b686e38c4
9 changed files with 1053 additions and 0 deletions

16
default.nix Normal file
View File

@@ -0,0 +1,16 @@
{ pkgs ? import <nixpkgs> { } }:
pkgs.rustPlatform.buildRustPackage rec {
pname = "rpi-fan-control";
version = "0.1";
cargoLock.lockFile = ./Cargo.lock;
src = pkgs.lib.cleanSource ./.;
nativeBuildInputs = with pkgs; [
pkg-config
rustPlatform.bindgenHook
];
buildInputs = with pkgs; [
libgpiod
];
}