Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
61 lines
1.3 KiB
Nix
61 lines
1.3 KiB
Nix
{
|
|
fetchFromGitHub,
|
|
lib,
|
|
nix-update-script,
|
|
openssl,
|
|
openvr,
|
|
openxr-loader,
|
|
pkg-config,
|
|
rustPlatform,
|
|
versionCheckHook,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "oscavmgr";
|
|
version = "25.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "galister";
|
|
repo = "oscavmgr";
|
|
tag = "v${version}";
|
|
hash = "sha256-592qj0dHn0fbIFt4Y+1TESIOUpwXcJ2tnlKNcYuxriQ=";
|
|
};
|
|
|
|
cargoHash = "sha256-1/jjZ1jkLvE/L1lHFL3RCx3ox2w15WWDp6aQJOtFkcU=";
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = [
|
|
openssl
|
|
openxr-loader
|
|
];
|
|
|
|
nativeInstallCheckInputs = [ versionCheckHook ];
|
|
doInstallCheck = true;
|
|
|
|
postPatch = ''
|
|
alvr_session=$(echo $cargoDepsCopy/alvr_session-*/)
|
|
substituteInPlace "$alvr_session/build.rs" \
|
|
--replace-fail \
|
|
'alvr_filesystem::workspace_dir().join("openvr/headers/openvr_driver.h")' \
|
|
'"${openvr}/include/openvr/openvr_driver.h"'
|
|
|
|
'';
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
meta = {
|
|
description = "Face tracking & utilities for Resonite and VRChat";
|
|
homepage = "https://github.com/galister/oscavmgr";
|
|
changelog = "https://github.com/galister/oscavmgr/releases/tag/v${version}";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [
|
|
pandapip1
|
|
Scrumplex
|
|
];
|
|
mainProgram = "oscavmgr";
|
|
};
|
|
}
|