forked from M-Labs/nix-scripts
Drew Risinger
ca28925120
Changes "name = '...-${version}" -> "pname = '...'" syntax everywhere that is easy. This matches current best nixpkgs convention. The nixpkgs standard derivation will convert this to name = "${pname}-${version}" automatically. This also has the added benefit of adding the version to the filepath for several packages that didn't have it before. The only remaining files are ./artiq-full/extras.nix & ./artiq-fast/pkgs/python-deps.nix. extras.nix had a semi-confusing function that I didn't want to mess with.
24 lines
833 B
Nix
24 lines
833 B
Nix
{ stdenv, fetchFromGitHub, llvm-or1k, makeWrapper, python3, ncurses, zlib, python3Packages }:
|
|
python3Packages.buildPythonPackage rec {
|
|
pname = "llvmlite-artiq";
|
|
version = "0.23.0.dev";
|
|
src = fetchFromGitHub {
|
|
rev = "158f9d3a898dbf055ca513d69505df288c681fea";
|
|
owner = "m-labs";
|
|
repo = "llvmlite";
|
|
sha256 = "1anniwya5jhhr2sxfdnwrsjy17yrk3x61i9hsm1rljsb8zvh68d5";
|
|
};
|
|
|
|
buildInputs = [ makeWrapper python3 ncurses zlib llvm-or1k python3Packages.setuptools ];
|
|
|
|
preBuild = "export LLVM_CONFIG=${llvm-or1k}/bin/llvm-config";
|
|
|
|
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;
|
|
};
|
|
}
|