2023-10-03 14:50:21 +00:00
|
|
|
{ lib, fetchFromGitHub, rustPlatform, pkg-config, sqlite }:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage {
|
|
|
|
pname = "raspi-oled";
|
|
|
|
version = "unstable-infdev-4";
|
|
|
|
|
|
|
|
src = ./.;
|
|
|
|
|
|
|
|
cargoLock = {
|
|
|
|
lockFile = ./Cargo.lock;
|
|
|
|
outputHashes = {
|
2023-10-04 10:42:30 +00:00
|
|
|
"ssd1351-0.3.0" = "sha256-D0gnYbZfSsG/K8BN5N8pmMGtGcqWt7/0gN3UXLRsOlc=";
|
2023-10-03 14:50:21 +00:00
|
|
|
# "gpio-am2302-rs-1.1.0" = "sha256-tyA/R80LtWIXoVEoxHhkmzy0IsMdMH1Oi3FTQ56XjyQ=";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
|
|
|
|
cargoBuildFlags = [ "--no-default-features" ];
|
|
|
|
|
|
|
|
buildInputs = [ sqlite ];
|
|
|
|
|
|
|
|
RUSTC_BOOTSTRAP = "1";
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "OLED display of clock/calendar/temperature";
|
|
|
|
homepage = "https://github.com/FliegendeWurst/raspi-oled";
|
2023-10-04 10:42:30 +00:00
|
|
|
license = licenses.gpl3;
|
2023-10-03 14:50:21 +00:00
|
|
|
maintainers = with maintainers; [ fliegendewurst ];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|