2018-08-16 10:01:48 +08:00
|
|
|
{ stdenv, fetchgit, llvm-or1k, makeWrapper, python3, ncurses, zlib, python3Packages }:
|
2016-03-06 23:54:07 +08:00
|
|
|
let
|
|
|
|
version = "0f4ebae";
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "llvmlite-${version}";
|
|
|
|
src = fetchgit {
|
|
|
|
url = "https://github.com/m-labs/llvmlite";
|
2018-08-16 00:33:52 +08:00
|
|
|
rev = "401dfb713166bdd2bc0d3ab2b7ebf12e7a434130";
|
|
|
|
sha256 = "1ci1pnpspv1pqz712yix1nmplq7568vpsr6gzzl3a33w9s0sw2nq";
|
2016-03-06 23:54:07 +08:00
|
|
|
leaveDotGit = true;
|
|
|
|
};
|
|
|
|
|
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
|
|
|
|
'';
|
|
|
|
}
|