mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-29 09:04:17 +00:00
e3244e9ff0
The xxxFlagsArray variants were never meant to be used in nix code, at least they can't be used properly without __structuredAttrs turned on. If no spaces are passed in the argument the xxxFlagsArray can be replaced as-is with the non-Array variant. When whitespace needs to be passed, the derivation is additionally changed to enable __structuredAttrs.
34 lines
847 B
Nix
34 lines
847 B
Nix
{ 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";
|
|
installFlags = "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;
|
|
};
|
|
})
|