2022-07-20 07:32:05 +00:00
|
|
|
{ lib, fetchFromGitHub, rustPlatform, pkg-config, sqlite }:
|
|
|
|
|
2023-09-24 10:43:48 +00:00
|
|
|
rustPlatform.buildRustPackage {
|
2022-07-20 07:32:05 +00:00
|
|
|
pname = "raspi-oled";
|
2023-09-24 10:43:48 +00:00
|
|
|
version = "unstable-infdev-3";
|
2022-07-20 07:32:05 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "FliegendeWurst";
|
|
|
|
repo = "raspi-oled";
|
2023-09-24 10:43:48 +00:00
|
|
|
rev = "c17424a686fe2dc4f8928052c68deda57794a44d";
|
|
|
|
sha256 = "sha256-C9Q/2NCrhxGIgzAU5eBWD21+5l/YtTiwjbpvnRorrOY=";
|
2022-07-20 07:32:05 +00:00
|
|
|
};
|
|
|
|
|
2023-09-24 10:43:48 +00:00
|
|
|
cargoLock = {
|
|
|
|
lockFile = ./Cargo.lock;
|
|
|
|
outputHashes = {
|
|
|
|
"ssd1351-0.3.0" = "sha256-K6QCU9qPEuU7Ur8W6fTdi4JWk8NsVz3mLfV0afpfdBA=";
|
|
|
|
# "gpio-am2302-rs-1.1.0" = "sha256-tyA/R80LtWIXoVEoxHhkmzy0IsMdMH1Oi3FTQ56XjyQ=";
|
|
|
|
};
|
|
|
|
};
|
2022-07-20 07:32:05 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
buildInputs = [ sqlite ];
|
|
|
|
RUSTC_BOOTSTRAP = "1";
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "OLED display of clock/calendar/temperature";
|
|
|
|
homepage = "https://github.com/FliegendeWurst/raspi-oled";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ fliegendewurst ];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|