2015-05-13 15:32:32 +02:00
|
|
|
{ stdenv, fetchFromGitHub, python, llvm, clang }:
|
2015-03-28 21:54:27 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "libclc-2015-03-27";
|
|
|
|
|
2015-05-13 15:32:32 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "llvm-mirror";
|
|
|
|
repo = "libclc";
|
|
|
|
rev = "0a2d1619921545b52303be5608b64dc46f381e97";
|
|
|
|
sha256 = "0hgm013c0vlfqfbbf4cdajl01hhk1mhsfk4h4bfza1san97l0vcc";
|
2015-03-28 21:54:27 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ python llvm clang ];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
sed -i 's,llvm_clang =.*,llvm_clang = "${clang}/bin/clang",' configure.py
|
|
|
|
sed -i 's,cxx_compiler =.*,cxx_compiler = "${clang}/bin/clang++",' configure.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
configurePhase = ''
|
|
|
|
python2 ./configure.py --prefix=$out
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = http://libclc.llvm.org/;
|
2015-05-13 15:32:32 +02:00
|
|
|
description = "Implementation of the library requirements of the OpenCL C programming language";
|
2015-03-28 21:54:27 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = with maintainers; [ wkennington ];
|
|
|
|
};
|
|
|
|
}
|