2017-03-03 14:39:00 +03:00
|
|
|
{ stdenv, fetchFromGitHub, python2, llvm_4, clang }:
|
2015-03-28 23:54:27 +03:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2017-02-28 18:33:17 +03:00
|
|
|
name = "libclc-2017-02-25";
|
2015-03-28 23:54:27 +03:00
|
|
|
|
2015-05-13 16:32:32 +03:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "llvm-mirror";
|
|
|
|
repo = "libclc";
|
2017-02-28 18:33:17 +03:00
|
|
|
rev = "17648cd846390e294feafef21c32c7106eac1e24";
|
|
|
|
sha256 = "1c20jyh3sdwd9r37zs4vvppmsx8vhf2xbx0cxsrc27bhx5245p0s";
|
2015-03-28 23:54:27 +03:00
|
|
|
};
|
|
|
|
|
2017-03-03 14:39:00 +03:00
|
|
|
buildInputs = [ python2 llvm_4 clang ];
|
2015-03-28 23:54:27 +03:00
|
|
|
|
|
|
|
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 = ''
|
2017-02-09 10:52:22 +03:00
|
|
|
${python2.interpreter} ./configure.py --prefix=$out
|
2015-03-28 23:54:27 +03:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = http://libclc.llvm.org/;
|
2015-05-13 16:32:32 +03:00
|
|
|
description = "Implementation of the library requirements of the OpenCL C programming language";
|
2015-03-28 23:54:27 +03:00
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = with maintainers; [ wkennington ];
|
|
|
|
};
|
|
|
|
}
|