2019-02-14 15:29:42 +08:00
|
|
|
{ stdenv, fetchFromGitHub, llvm-or1k, makeWrapper, python3, ncurses, zlib, python3Packages }:
|
2019-02-19 01:29:54 +08:00
|
|
|
python3Packages.buildPythonPackage rec {
|
2019-02-19 00:51:09 +08:00
|
|
|
name = "llvmlite-artiq";
|
2019-02-14 15:29:42 +08:00
|
|
|
src = fetchFromGitHub {
|
2019-04-12 18:32:07 +08:00
|
|
|
rev = "158f9d3a898dbf055ca513d69505df288c681fea";
|
2019-02-14 15:29:42 +08:00
|
|
|
owner = "m-labs";
|
|
|
|
repo = "llvmlite";
|
2019-04-12 18:32:07 +08:00
|
|
|
sha256 = "1anniwya5jhhr2sxfdnwrsjy17yrk3x61i9hsm1rljsb8zvh68d5";
|
2019-02-14 15:29:42 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ makeWrapper python3 ncurses zlib llvm-or1k python3Packages.setuptools ];
|
|
|
|
|
2019-04-12 18:17:55 +08:00
|
|
|
preBuild = "export LLVM_CONFIG=${llvm-or1k}/bin/llvm-config";
|
2019-02-14 15:29:42 +08:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A lightweight LLVM python binding for writing JIT compilers";
|
|
|
|
homepage = "http://llvmlite.pydata.org/";
|
|
|
|
#maintainers = with maintainers; [ sb0 ];
|
|
|
|
license = licenses.bsd2;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|