87f9c27ba9
GitOrigin-RevId: fe2ecaf706a5907b5e54d979fbde4924d84b65fc
28 lines
795 B
Nix
28 lines
795 B
Nix
{ lib, stdenv, fetchFromGitHub, cmake }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "spirv-headers";
|
|
version = "1.3.243.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "KhronosGroup";
|
|
repo = "SPIRV-Headers";
|
|
rev = "sdk-${version}";
|
|
hash = "sha256-VOq3r6ZcbDGGxjqC4IoPMGC5n1APUPUAs9xcRzxdyfk=";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
# https://github.com/KhronosGroup/SPIRV-Headers/issues/282
|
|
postPatch = ''
|
|
substituteInPlace SPIRV-Headers.pc.in \
|
|
--replace '$'{prefix}/@CMAKE_INSTALL_INCLUDEDIR@ @CMAKE_INSTALL_FULL_INCLUDEDIR@
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Machine-readable components of the Khronos SPIR-V Registry";
|
|
homepage = "https://github.com/KhronosGroup/SPIRV-Headers";
|
|
license = licenses.mit;
|
|
maintainers = [ maintainers.ralith ];
|
|
};
|
|
}
|