mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
oscavmgr: init at 0.4.1 (#339627)
This commit is contained in:
commit
6c38abd23e
2228
pkgs/by-name/os/oscavmgr/Cargo.lock
generated
Normal file
2228
pkgs/by-name/os/oscavmgr/Cargo.lock
generated
Normal file
File diff suppressed because it is too large
Load Diff
63
pkgs/by-name/os/oscavmgr/package.nix
Normal file
63
pkgs/by-name/os/oscavmgr/package.nix
Normal file
@ -0,0 +1,63 @@
|
||||
{
|
||||
fetchFromGitHub,
|
||||
lib,
|
||||
nix-update-script,
|
||||
openssl,
|
||||
openvr,
|
||||
openxr-loader,
|
||||
pkg-config,
|
||||
rustPlatform,
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "oscavmgr";
|
||||
version = "0.4.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "galister";
|
||||
repo = "oscavmgr";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-1cpisSevAU2zGNrpVEGvulBcWB5rWkWAIYI/0vjzRQE=";
|
||||
};
|
||||
|
||||
cargoLock = {
|
||||
lockFile = ./Cargo.lock;
|
||||
outputHashes = {
|
||||
"alvr_common-20.10.0" = "sha256-2d5+9rxCpqgLMab7i1pLKaY1qSKRxzPI7pgh54rQBdg=";
|
||||
"openxr-0.19.0" = "sha256-kbEYoN4UvUEaZA9LJWEKx1X1r+l91GjTWs1hNXhr7cw=";
|
||||
"settings-schema-0.2.0" = "sha256-luEdAKDTq76dMeo5kA+QDTHpRMFUg3n0qvyQ7DkId0k=";
|
||||
};
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
pkg-config
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
openssl
|
||||
openxr-loader
|
||||
];
|
||||
|
||||
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";
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user