9 rustPlatform.buildRustPackage rec {
11 version = "2024.01.24-ea3cd430";
13 src = fetchFromGitHub {
17 hash = "sha256-iGOj0a4+wLd8QlM1tr+NYfd2tuwgHV+u5dt0zf+WscY=";
21 ./dont-vendor-openssl.diff
25 # update test fixtures https://github.com/wez/govee2mqtt/pull/120
27 url = "https://github.com/wez/govee2mqtt/commit/0c2dc3e1cc1ccd44ddf98ead34e081ac4b4335f1.patch";
28 hash = "sha256-0TNYyvRRcMkE9FYPcVoKburejhAn/cVYM3eaobS4nx8=";
33 substituteInPlace src/service/http.rs \
34 --replace '"assets"' '"${placeholder "out"}/share/govee2mqtt/assets"'
37 cargoHash = "sha256-wApf+H5T7HPkCGQwv8ePoDnStUn04oVvv3eIJ8aKVUw=";
39 nativeBuildInputs = [ pkg-config ];
41 buildInputs = [ openssl ];
44 mkdir -p $out/share/govee2mqtt/
45 cp -r assets $out/share/govee2mqtt/
49 description = "Connect Govee lights and devices to Home Assistant";
50 homepage = "https://github.com/wez/govee2mqtt";
51 changelog = "https://github.com/wez/govee2mqtt/blob/${src.rev}/addon/CHANGELOG.md";
52 license = licenses.mit;
53 maintainers = with maintainers; [ SuperSandro2000 ];
54 mainProgram = "govee";