raspi-oled/default.nix
FliegendeWurst f8de136019 Remove silly GPIO pins for buttons
I'm finally giving in and will now connect stuff via a breadboard...
Risky move though, I already fried one DHT22 by plugging the connector
in the wrong way around -.-
2023-10-14 11:37:00 +02:00

33 lines
820 B
Nix

{ lib, fetchFromGitHub, rustPlatform, pkg-config, sqlite }:
rustPlatform.buildRustPackage {
pname = "raspi-oled";
version = "unstable-infdev-4";
src = ./.;
cargoLock = {
lockFile = ./Cargo.lock;
outputHashes = {
"ssd1351-0.3.0" = "sha256-DD7+NhYwUwD/xC+7ZUNKdhcfsSCOQ9NVEy9lcS47Q5E=";
# "gpio-am2302-rs-1.1.0" = "sha256-tyA/R80LtWIXoVEoxHhkmzy0IsMdMH1Oi3FTQ56XjyQ=";
};
};
nativeBuildInputs = [ pkg-config ];
cargoBuildFlags = [ "--no-default-features" "--bin" "take_measurement" ];
buildInputs = [ sqlite ];
RUSTC_BOOTSTRAP = "1";
meta = with lib; {
description = "OLED display of clock/calendar/temperature";
homepage = "https://github.com/FliegendeWurst/raspi-oled";
license = licenses.gpl3;
maintainers = with maintainers; [ fliegendewurst ];
};
}