lol

xrizer: init at 0.1 (#371093)

authored by scrumplex.net and committed by

GitHub 9e8d6768 0e989150

+60
+60
pkgs/by-name/xr/xrizer/package.nix
··· 1 + { 2 + fetchFromGitHub, 3 + lib, 4 + libxkbcommon, 5 + nix-update-script, 6 + openxr-loader, 7 + pkg-config, 8 + rustPlatform, 9 + shaderc, 10 + vulkan-loader, 11 + }: 12 + rustPlatform.buildRustPackage rec { 13 + pname = "xrizer"; 14 + version = "0.1"; 15 + 16 + src = fetchFromGitHub { 17 + owner = "Supreeeme"; 18 + repo = "xrizer"; 19 + tag = "v${version}"; 20 + hash = "sha256-0szkc/EURm4N0gl+tSFhLeQTYPX7ZgBHXwpP11Ju8Ng="; 21 + }; 22 + 23 + useFetchCargoVendor = true; 24 + cargoHash = "sha256-xyiEKPnko9mpEsUfl7wuAAsobRTwBHhZuKuU/HP4Ujs="; 25 + 26 + nativeBuildInputs = [ 27 + pkg-config 28 + rustPlatform.bindgenHook 29 + shaderc 30 + ]; 31 + 32 + buildInputs = [ 33 + libxkbcommon 34 + vulkan-loader 35 + openxr-loader 36 + ]; 37 + 38 + postPatch = '' 39 + substituteInPlace Cargo.toml \ 40 + --replace-fail 'features = ["static"]' 'features = ["linked"]' 41 + ''; 42 + 43 + postInstall = '' 44 + mkdir -p $out/lib/xrizer/bin/linux64 45 + ln -s "$out/lib/libxrizer.so" "$out/lib/xrizer/bin/linux64/vrclient.so" 46 + ''; 47 + 48 + passthru.updateScript = nix-update-script { }; 49 + 50 + meta = { 51 + description = "XR-ize your favorite OpenVR games"; 52 + homepage = "https://github.com/Supreeeme/xrizer"; 53 + license = lib.licenses.gpl3Only; 54 + maintainers = with lib.maintainers; [ Scrumplex ]; 55 + # TODO: support more systems 56 + # To do so, we need to map systems to the format openvr expects. 57 + # i.e. x86_64-linux -> linux64, aarch64-linux -> linuxarm64 58 + platforms = [ "x86_64-linux" ]; 59 + }; 60 + }