1 { lib, stdenv, fetchFromGitHub, cmake }:
3 stdenv.mkDerivation rec {
7 src = fetchFromGitHub {
9 repo = "incubator-tvm";
11 fetchSubmodules = true;
12 hash = "sha256-5Jr+xubQoASNgy/UR/K5pvzMs4szP9LidFOLs3h+KSY=";
15 nativeBuildInputs = [ cmake ];
16 # TVM CMake build uses some sources in the project's ./src/target/opt/
17 # directory which errneously gets mangled by the eager `fixCmakeFiles`
18 # function in Nix's CMake setup-hook.sh to ./src/target/var/empty/,
19 # which then breaks the build. Toggling this flag instructs Nix to
20 # not mangle the legitimate use of the opt/ folder.
24 homepage = "https://tvm.apache.org/";
25 description = "End to End Deep Learning Compiler Stack for CPUs, GPUs and accelerators";
26 license = licenses.asl20;
27 platforms = platforms.all;
28 maintainers = with maintainers; [ adelbertc ];