1{ lib, stdenv, fetchFromGitHub, meson, ninja }:
2stdenv.mkDerivation rec {
3 pname = "directx-headers";
4 version = "1.610.2";
5
6 src = fetchFromGitHub {
7 owner = "microsoft";
8 repo = "DirectX-Headers";
9 rev = "v${version}";
10 hash = "sha256-se+/TgqKdatTnBlHcBC1K4aOGGfPEW+E1efpP34+xc0=";
11 };
12
13 nativeBuildInputs = [ meson ninja ];
14
15 # tests require WSL2
16 mesonFlags = [ "-Dbuild-test=false" ];
17
18 meta = with lib; {
19 description = "Official D3D12 headers from Microsoft";
20 homepage = "https://github.com/microsoft/DirectX-Headers";
21 license = licenses.mit;
22 maintainers = with maintainers; [ k900 ];
23 platforms = platforms.all;
24 };
25}