nixpkgs/pkgs/by-name/xr/xrgears/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

71 lines
1.2 KiB
Nix
Raw Normal View History

{
SDL2,
fetchFromGitLab,
glib,
glm,
glslang,
lib,
libGL,
makeWrapper,
meson,
ninja,
openxr-loader,
pkg-config,
stdenv,
unstableGitUpdater,
vulkan-headers,
vulkan-loader,
xxd,
2020-12-16 05:30:41 +00:00
}:
stdenv.mkDerivation {
2020-12-16 05:30:41 +00:00
pname = "xrgears";
version = "1.0.1-unstable-2024-07-09";
2020-12-16 05:30:41 +00:00
src = fetchFromGitLab {
domain = "gitlab.freedesktop.org";
owner = "monado";
repo = "demos/xrgears";
rev = "9cabbd34b1f60f27402a9a50fc260f77a41b835b";
sha256 = "sha256-9VV1zAOZKkl1zzjnsQQQOINi+T+wpbltdWpJ/d66+cM=";
2020-12-16 05:30:41 +00:00
};
nativeBuildInputs = [
glslang
meson
ninja
pkg-config
xxd
makeWrapper
2020-12-16 05:30:41 +00:00
];
buildInputs = [
glm
openxr-loader
vulkan-headers
vulkan-loader
glib
2020-12-16 05:30:41 +00:00
];
fixupPhase = ''
wrapProgram $out/bin/xrgears \
--prefix LD_LIBRARY_PATH : ${
lib.makeLibraryPath [
SDL2
libGL
]
}
'';
passthru.updateScript = unstableGitUpdater { };
meta = with lib; {
2020-12-16 05:30:41 +00:00
homepage = "https://gitlab.freedesktop.org/monado/demos/xrgears";
description = "OpenXR example using Vulkan for rendering";
mainProgram = "xrgears";
2020-12-16 05:30:41 +00:00
platforms = platforms.linux;
license = licenses.mit;
maintainers = with maintainers; [ Scrumplex ];
2020-12-16 05:30:41 +00:00
};
}