nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ stdenv, fetchFromGitHub, cmake }:
2
3stdenv.mkDerivation rec {
4 pname = "spirv-headers";
5 version = "1.5.1";
6
7 src = fetchFromGitHub {
8 owner = "KhronosGroup";
9 repo = "SPIRV-Headers";
10 rev = version;
11 sha256 = "1fnd8qwss6pxcch5j9qi1pdz70828zxsg4m8apgrhyj0p9lm0rbg";
12 };
13
14 nativeBuildInputs = [ cmake ];
15
16 meta = with stdenv.lib; {
17 inherit (src.meta) homepage;
18 description = "Machine-readable components of the Khronos SPIR-V Registry";
19 license = licenses.mit;
20 maintainers = [ maintainers.ralith ];
21 };
22}