uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
30
pkgs/development/compilers/tvm/default.nix
Normal file
30
pkgs/development/compilers/tvm/default.nix
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
{ lib, stdenv, fetchFromGitHub, cmake }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "tvm";
|
||||
version = "0.8.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "apache";
|
||||
repo = "incubator-tvm";
|
||||
rev = "v${version}";
|
||||
fetchSubmodules = true;
|
||||
sha256 = "sha256-fv2hhPGbr/AbwuN8rAF9PI/QTTqxNgwjYl9arg5GjKY=";
|
||||
};
|
||||
|
||||
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 ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue