2023-02-02 18:25:31 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, meson, ninja }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "directx-headers";
|
2024-06-20 14:57:18 +00:00
|
|
|
version = "1.614.0";
|
2023-02-02 18:25:31 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "microsoft";
|
|
|
|
repo = "DirectX-Headers";
|
|
|
|
rev = "v${version}";
|
2024-06-20 14:57:18 +00:00
|
|
|
hash = "sha256-0LaN9D3cKVacMJhZCe9oxDPHpd1jdCAV0ImG2rSgnxc=";
|
2023-02-02 18:25:31 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ meson ninja ];
|
|
|
|
|
|
|
|
# tests require WSL2
|
|
|
|
mesonFlags = [ "-Dbuild-test=false" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Official D3D12 headers from Microsoft";
|
|
|
|
homepage = "https://github.com/microsoft/DirectX-Headers";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ k900 ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|