depot/third_party/nixpkgs/pkgs/tools/misc/lighthouse-steamvr/default.nix
Default email 472aeafc57 Project import generated by Copybara.
GitOrigin-RevId: c31898adf5a8ed202ce5bea9f347b1c6871f32d1
2024-10-04 18:56:33 +02:00

38 lines
789 B
Nix

{
stdenv,
fetchFromGitHub,
lib,
rustPlatform,
pkg-config,
dbus,
AppKit,
}:
rustPlatform.buildRustPackage rec {
pname = "Lighthouse";
version = "1.2.0";
src = fetchFromGitHub {
owner = "ShayBox";
repo = pname;
rev = version;
hash = "sha256-uJ8U4knNKAliHjxP0JnV1lSCEsB6OHyYSbb5aWboYV4=";
};
cargoHash = "sha256-XVPrtZNLdF9mKSl56kBepkpXRQBJsu9KlZRhb6BeG/E=";
nativeBuildInputs = [ pkg-config ];
buildInputs = [ dbus ] ++ lib.optionals stdenv.isDarwin [ AppKit ];
meta = with lib; {
description = "VR Lighthouse power state management";
homepage = "https://github.com/ShayBox/Lighthouse";
license = licenses.mit;
maintainers = with maintainers; [
expipiplus1
bddvlpr
];
mainProgram = "lighthouse";
};
}