mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-18 03:34:58 +00:00
27 lines
767 B
Nix
27 lines
767 B
Nix
{ lib, stdenv, fetchFromGitHub, cmake, python3, spirv-headers }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "spirv-tools";
|
|
# Update spirv-headers rev in lockstep according to DEPs file
|
|
version = "2021.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "KhronosGroup";
|
|
repo = "SPIRV-Tools";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-skpsxpgl6hR5uiKfphKFQJfh+LJvhGvDW/t2u5AhXzk=";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake python3 ];
|
|
|
|
cmakeFlags = [ "-DSPIRV-Headers_SOURCE_DIR=${spirv-headers.src}" ];
|
|
|
|
meta = with lib; {
|
|
inherit (src.meta) homepage;
|
|
description = "The SPIR-V Tools project provides an API and commands for processing SPIR-V modules";
|
|
license = licenses.asl20;
|
|
platforms = platforms.linux;
|
|
maintainers = [ maintainers.ralith ];
|
|
};
|
|
}
|