nixpkgs/pkgs/tools/misc/lighthouse-steamvr/default.nix
Luna Simons e830b40eef lighthouse-steamvr: unstable-2021-03-28 -> 1.0.0
Previous version was based off the rust version (at the time) which is now corrected to 1.0.0. Version 1.1.0 is currently 'under maintenance' so it is adviced to stay on 1.0.0 for now.
2023-05-25 19:57:46 +00:00

37 lines
866 B
Nix

{ stdenv, fetchFromGitHub, lib, rustPlatform, pkg-config, dbus }:
rustPlatform.buildRustPackage rec {
pname = "Lighthouse";
version = "1.0.0";
src = fetchFromGitHub {
owner = "ShayBox";
repo = pname;
rev = version;
sha256 = "0628v6fq9dcv1w4spgnypgyxf1qw5x03yhasink5s9nqpcip0w4h";
};
cargoLock = {
lockFile = ./Cargo.lock;
outputHashes = {
"clap-verbosity-flag-2.0.0" = "125b8ki3dqj2kilimmvpi9wslwky8xacydi75c2bdrxpi926nya6";
};
};
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 ];
};
}