nixpkgs/pkgs/development/tools/spirv-tools/default.nix

26 lines
709 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, cmake, python3, spirv-headers }:
2016-08-31 10:19:14 +00:00
stdenv.mkDerivation rec {
pname = "spirv-tools";
version = "1.2.198.0";
2016-08-31 10:19:14 +00:00
2019-02-17 17:52:50 +00:00
src = fetchFromGitHub {
owner = "KhronosGroup";
repo = "SPIRV-Tools";
rev = "sdk-${version}";
sha256 = "sha256-8EJbTPY5dvsqx32POf2HcCV3j2fA68GtGZA66l9V4TI=";
2019-02-17 17:52:50 +00:00
};
2016-08-31 10:19:14 +00:00
2019-11-02 18:41:47 +00:00
nativeBuildInputs = [ cmake python3 ];
2016-08-31 10:19:14 +00:00
2019-02-17 17:52:50 +00:00
cmakeFlags = [ "-DSPIRV-Headers_SOURCE_DIR=${spirv-headers.src}" ];
meta = with lib; {
2016-08-31 10:19:14 +00:00
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;
2017-04-01 19:28:59 +00:00
maintainers = [ maintainers.ralith ];
2016-08-31 10:19:14 +00:00
};
}