2018-11-16 15:14:20 +08:00
|
|
|
{ stdenv, fetchFromGitHub, llvm-or1k, makeWrapper, python3, ncurses, zlib, python3Packages }:
|
2016-03-06 23:54:07 +08:00
|
|
|
stdenv.mkDerivation rec {
|
2019-01-21 23:55:25 +08:00
|
|
|
name = "llvmlite";
|
2018-11-16 15:14:20 +08:00
|
|
|
src = fetchFromGitHub {
|
2018-12-22 14:01:52 +08:00
|
|
|
rev = "1d167be4eec5d6c32498952be8b3ac17dd30df8d";
|
2018-11-16 15:14:20 +08:00
|
|
|
owner = "m-labs";
|
|
|
|
repo = "llvmlite";
|
2018-12-22 14:01:52 +08:00
|
|
|
sha256 = "0ranbjhcz2v3crmdbw1sxdwqwqbbm7dd53d8qaqb69ma9fkxy8x7";
|
2016-03-06 23:54:07 +08:00
|
|
|
};
|
|
|
|
|
2018-08-16 10:01:48 +08:00
|
|
|
buildInputs = [ makeWrapper python3 ncurses zlib llvm-or1k python3Packages.setuptools ];
|
2016-03-06 23:54:07 +08:00
|
|
|
|
|
|
|
installPhase = ''
|
2018-08-16 00:33:52 +08:00
|
|
|
LLVM_CONFIG=${llvm-or1k}/bin/llvm-config
|
2016-03-06 23:54:07 +08:00
|
|
|
python3 setup.py install --prefix=$out
|
|
|
|
'';
|
|
|
|
}
|