nixpkgs/pkgs/development/tools/spirv-tools/default.nix
Benjamin Saunders f19a3884bc vulkan: 1.2.189.1 -> 1.2.198.0
Upstream has established rigorous tagging practices, allowing us to
simplify things considerably.
2022-01-16 14:57:11 -08:00

26 lines
709 B
Nix

{ lib, stdenv, fetchFromGitHub, cmake, python3, spirv-headers }:
stdenv.mkDerivation rec {
pname = "spirv-tools";
version = "1.2.198.0";
src = fetchFromGitHub {
owner = "KhronosGroup";
repo = "SPIRV-Tools";
rev = "sdk-${version}";
sha256 = "sha256-8EJbTPY5dvsqx32POf2HcCV3j2fA68GtGZA66l9V4TI=";
};
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 ];
};
}