2024-10-04 16:56:33 +00:00
|
|
|
{
|
|
|
|
stdenv,
|
|
|
|
fetchFromGitHub,
|
|
|
|
lib,
|
|
|
|
rustPlatform,
|
|
|
|
pkg-config,
|
|
|
|
dbus,
|
|
|
|
AppKit,
|
|
|
|
}:
|
2021-12-06 16:07:01 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "Lighthouse";
|
2024-10-04 16:56:33 +00:00
|
|
|
version = "1.2.0";
|
2021-12-06 16:07:01 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ShayBox";
|
2023-07-15 17:15:38 +00:00
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2024-10-04 16:56:33 +00:00
|
|
|
hash = "sha256-uJ8U4knNKAliHjxP0JnV1lSCEsB6OHyYSbb5aWboYV4=";
|
2021-12-06 16:07:01 +00:00
|
|
|
};
|
|
|
|
|
2024-10-04 16:56:33 +00:00
|
|
|
cargoHash = "sha256-XVPrtZNLdF9mKSl56kBepkpXRQBJsu9KlZRhb6BeG/E=";
|
2021-12-06 16:07:01 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
|
2024-10-04 16:56:33 +00:00
|
|
|
buildInputs = [ dbus ] ++ lib.optionals stdenv.isDarwin [ AppKit ];
|
2021-12-06 16:07:01 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "VR Lighthouse power state management";
|
|
|
|
homepage = "https://github.com/ShayBox/Lighthouse";
|
|
|
|
license = licenses.mit;
|
2024-10-04 16:56:33 +00:00
|
|
|
maintainers = with maintainers; [
|
|
|
|
expipiplus1
|
|
|
|
bddvlpr
|
|
|
|
];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "lighthouse";
|
2021-12-06 16:07:01 +00:00
|
|
|
};
|
|
|
|
}
|