mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 21:03:15 +00:00
31 lines
985 B
Nix
31 lines
985 B
Nix
{ lib, stdenv, fetchFromGitHub, cmake }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "tvm";
|
|
version = "0.15.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "apache";
|
|
repo = "incubator-tvm";
|
|
rev = "v${version}";
|
|
fetchSubmodules = true;
|
|
sha256 = "sha256-VbJptTUi12pJh1wz4I+xL6HVo/rSiUHCkvgEMPe1F6o=";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
# TVM CMake build uses some sources in the project's ./src/target/opt/
|
|
# directory which errneously gets mangled by the eager `fixCmakeFiles`
|
|
# function in Nix's CMake setup-hook.sh to ./src/target/var/empty/,
|
|
# which then breaks the build. Toggling this flag instructs Nix to
|
|
# not mangle the legitimate use of the opt/ folder.
|
|
dontFixCmake = true;
|
|
|
|
meta = with lib; {
|
|
homepage = "https://tvm.apache.org/";
|
|
description = "An End to End Deep Learning Compiler Stack for CPUs, GPUs and accelerators";
|
|
license = licenses.asl20;
|
|
platforms = platforms.all;
|
|
maintainers = with maintainers; [ adelbertc ];
|
|
};
|
|
}
|