nixpkgs/pkgs/by-name/mo/motoc/package.nix
2024-10-20 11:27:04 +00:00

43 lines
989 B
Nix

{
lib,
rustPlatform,
fetchFromGitHub,
openxr-loader,
nix-update-script,
}:
rustPlatform.buildRustPackage rec {
pname = "motoc";
version = "0.3.3";
src = fetchFromGitHub {
owner = "galister";
repo = "motoc";
rev = "refs/tags/v${version}";
hash = "sha256-AmHTnCUTHoeLsOJrD35BooU9mZr5ctoCJmjW5CaTYBY=";
};
cargoLock = {
lockFile = ./Cargo.lock;
outputHashes = {
"libmonado-rs-0.1.0" = "sha256-bbbo/Mkix6nUGLwplvj6m8IXOcZY5UoWc1xZnI67IlU=";
"openxr-0.19.0" = "sha256-kbEYoN4UvUEaZA9LJWEKx1X1r+l91GjTWs1hNXhr7cw=";
};
};
buildInputs = [
openxr-loader
];
passthru.updateScript = nix-update-script { };
meta = {
description = "MOnado Tracking Origin Calibration program";
homepage = "https://github.com/galister/motoc";
changelog = "https://github.com/galister/motoc/releases";
license = lib.licenses.gpl3Plus;
maintainers = with lib.maintainers; [ pandapip1 ];
mainProgram = "motoc";
};
}