504525a148
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
37 lines
898 B
Nix
37 lines
898 B
Nix
{ stdenv, fetchFromGitHub, lib, rustPlatform, pkg-config, dbus }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "Lighthouse";
|
|
version = "1.1.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ShayBox";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "0g0cs54j1vmcig5nc8sqgx30nfn2zjs40pvv30j5g9cyyszbzwkw";
|
|
};
|
|
|
|
cargoLock = {
|
|
lockFile = ./Cargo.lock;
|
|
outputHashes = {
|
|
"clap-verbosity-flag-2.1.1" = "1213bsb0bpvv6621j9zicjsqy05sv21gh6inrvszqwcmj6fxxc7j";
|
|
};
|
|
};
|
|
|
|
postPatch = ''
|
|
cp ${./Cargo.lock} Cargo.lock
|
|
'';
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
buildInputs = [ dbus ];
|
|
|
|
meta = with lib; {
|
|
broken = stdenv.isDarwin;
|
|
description = "VR Lighthouse power state management";
|
|
homepage = "https://github.com/ShayBox/Lighthouse";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ expipiplus1 bddvlpr ];
|
|
mainProgram = "lighthouse";
|
|
};
|
|
}
|