forked from M-Labs/artiq
18 lines
549 B
Nix
18 lines
549 B
Nix
{ stdenv, fetchFromGitHub, llvm-or1k, makeWrapper, python3, ncurses, zlib, python3Packages }:
|
|
stdenv.mkDerivation rec {
|
|
name = "llvmlite";
|
|
src = fetchFromGitHub {
|
|
rev = "1d167be4eec5d6c32498952be8b3ac17dd30df8d";
|
|
owner = "m-labs";
|
|
repo = "llvmlite";
|
|
sha256 = "0ranbjhcz2v3crmdbw1sxdwqwqbbm7dd53d8qaqb69ma9fkxy8x7";
|
|
};
|
|
|
|
buildInputs = [ makeWrapper python3 ncurses zlib llvm-or1k python3Packages.setuptools ];
|
|
|
|
installPhase = ''
|
|
LLVM_CONFIG=${llvm-or1k}/bin/llvm-config
|
|
python3 setup.py install --prefix=$out
|
|
'';
|
|
}
|