about summary refs log tree commit diff
path: root/pkgs/by-name/xr/xr-hardware/package.nix
blob: 0f9b9360d3c0d67ee23bdd644b50386a426dcb8e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{ lib
, stdenvNoCC
, fetchFromGitLab
, nix-update-script
}:
stdenvNoCC.mkDerivation (finalAttrs: {
  pname = "xr-hardware";
  version = "1.1.1";

  src = fetchFromGitLab {
    domain = "gitlab.freedesktop.org";
    owner = "monado/utilities";
    repo = "xr-hardware";
    rev = "refs/tags/${finalAttrs.version}";
    hash = "sha256-w35/LoozCJz0ytHEHWsEdCaYYwyGU6sE13iMckVdOzY=";
  };

  dontConfigure = true;
  dontBuild = true;

  installTargets = "install_package";
  installFlagsArray = "DESTDIR=${placeholder "out"}";

  passthru.updateScript = nix-update-script { };

  meta = with lib; {
    description = "Hardware description for XR devices";
    homepage = "https://gitlab.freedesktop.org/monado/utilities/xr-hardware";
    license = licenses.boost;
    maintainers = with maintainers; [ Scrumplex ];
    platforms = platforms.linux;
  };
})