nixpkgs/pkgs/applications/graphics/xrgears/default.nix

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

60 lines
1.1 KiB
Nix
Raw Normal View History

{ lib, stdenv
2020-12-16 05:30:41 +00:00
, fetchFromGitLab
, glm
, glslang
, meson
, ninja
, openxr-loader
, pkg-config
, vulkan-headers
, vulkan-loader
, xxd
, SDL2
, makeWrapper
, libGL
, glib
2020-12-16 05:30:41 +00:00
}:
stdenv.mkDerivation rec {
pname = "xrgears";
version = "unstable-2021-06-19";
2020-12-16 05:30:41 +00:00
src = fetchFromGitLab {
domain = "gitlab.freedesktop.org";
owner = "monado";
repo = "demos/xrgears";
rev = "6331b98e065494995c9cc4b48ccdd9d5ccaef461";
sha256 = "sha256-buw2beTPIWScq+3VQjUyF+uOwS6VF+mnAPHZ2eFGZjc=";
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 ]}
'';
meta = with lib; {
2020-12-16 05:30:41 +00:00
homepage = "https://gitlab.freedesktop.org/monado/demos/xrgears";
description = "An OpenXR example using Vulkan for rendering";
platforms = platforms.linux;
license = licenses.mit;
maintainers = with maintainers; [ expipiplus1 ];
};
}