nixpkgs/pkgs/applications/graphics/xrgears/default.nix
Alexis Hildebrandt 755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00

61 lines
1.1 KiB
Nix

{ lib, stdenv
, fetchFromGitLab
, glm
, glslang
, meson
, ninja
, openxr-loader
, pkg-config
, vulkan-headers
, vulkan-loader
, xxd
, SDL2
, makeWrapper
, libGL
, glib
}:
stdenv.mkDerivation rec {
pname = "xrgears";
version = "unstable-2021-06-19";
src = fetchFromGitLab {
domain = "gitlab.freedesktop.org";
owner = "monado";
repo = "demos/xrgears";
rev = "6331b98e065494995c9cc4b48ccdd9d5ccaef461";
sha256 = "sha256-buw2beTPIWScq+3VQjUyF+uOwS6VF+mnAPHZ2eFGZjc=";
};
nativeBuildInputs = [
glslang
meson
ninja
pkg-config
xxd
makeWrapper
];
buildInputs = [
glm
openxr-loader
vulkan-headers
vulkan-loader
glib
];
fixupPhase = ''
wrapProgram $out/bin/xrgears \
--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ SDL2 libGL ]}
'';
meta = with lib; {
homepage = "https://gitlab.freedesktop.org/monado/demos/xrgears";
description = "OpenXR example using Vulkan for rendering";
mainProgram = "xrgears";
platforms = platforms.linux;
license = licenses.mit;
maintainers = with maintainers; [ expipiplus1 ];
};
}