xrizer: 0.3 -> 0.4 (#475044)

This commit is contained in:
Sefa Eyeoglu
2026-01-19 18:38:30 +00:00
committed by GitHub
+16 -18
View File
@@ -12,26 +12,34 @@
vulkan-loader,
stdenv,
}:
let
platformPaths = {
"aarch64-linux" = "bin/linuxarm64";
"i686-linux" = "bin";
"x86_64-linux" = "bin/linux64";
};
in
rustPlatform.buildRustPackage rec {
pname = "xrizer";
version = "0.3";
version = "0.4";
src = fetchFromGitHub {
owner = "Supreeeme";
repo = "xrizer";
tag = "v${version}";
hash = "sha256-o6/uGbczYp5t6trjFIltZAMSM61adn+BvNb1fBhBSsk=";
hash = "sha256-IRhLWlGHywp0kZe5aGmMHAF1zZwva3sGg68eG1E2K9A=";
};
patches = [
# https://github.com/Supreeeme/xrizer/pull/262
(fetchpatch2 {
name = "xrizer-fix-flaky-tests.patch";
url = "https://github.com/Supreeeme/xrizer/commit/f58d797e75a8d920982abeaeedee83877dd3c493.diff?full_index=1";
hash = "sha256-TI++ZY7QX1iaj3WT0woXApSY2Tairraao5kzF77ewYY=";
name = "xrizer-fix-aarch64.patch";
url = "https://github.com/Supreeeme/xrizer/commit/70ea6f616cd7608462cdf2f5bf76a85acf23fe33.patch?full_index=1";
hash = "sha256-Bwu/GjsaoS1VqpXmijBuZcJFUf6kRYWYWpGxm40AWyc=";
})
];
cargoHash = "sha256-kXcnD98ZaqRAA3jQvIoWSRC37Uq8l5PUYEzubxfMuUI=";
cargoHash = "sha256-orfK5pwWv91hA7Ra3Kk+isFTR+qMHSZ0EYZTVbf0fO0=";
nativeBuildInputs = [
pkg-config
@@ -57,13 +65,7 @@ rustPlatform.buildRustPackage rec {
mv "$out/lib/libxrizer.so" "$out/lib/xrizer/$platformPath/vrclient.so"
'';
platformPath =
{
"aarch64-linux" = "bin/linuxarm64";
"i686-linux" = "bin";
"x86_64-linux" = "bin/linux64";
}
."${stdenv.hostPlatform.system}";
platformPath = platformPaths."${stdenv.hostPlatform.system}";
passthru.updateScript = nix-update-script { };
@@ -72,10 +74,6 @@ rustPlatform.buildRustPackage rec {
homepage = "https://github.com/Supreeeme/xrizer";
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [ Scrumplex ];
platforms = [
"x86_64-linux"
"i686-linux"
"aarch64-linux"
];
platforms = builtins.attrNames platformPaths;
};
}