2017-02-08 18:38:03 +00:00
|
|
|
{ stdenv, fetchFromGitHub, python2, llvm, clang }:
|
2015-03-28 20:54:27 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2016-03-01 20:53:22 +00:00
|
|
|
name = "libclc-2015-08-07";
|
2015-03-28 20:54:27 +00:00
|
|
|
|
2015-05-13 14:32:32 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "llvm-mirror";
|
|
|
|
repo = "libclc";
|
2016-03-01 20:53:22 +00:00
|
|
|
rev = "f97d9db40718f2e68b3f0b44200760d8e0d50532";
|
|
|
|
sha256 = "10n9qk1dild9yjkjjkzpmp9zid3ysdgvqrad554azcf755frch7g";
|
2015-03-28 20:54:27 +00:00
|
|
|
};
|
|
|
|
|
2017-02-08 18:38:03 +00:00
|
|
|
buildInputs = [ python2 llvm clang ];
|
2015-03-28 20:54:27 +00: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 07:52:22 +00:00
|
|
|
${python2.interpreter} ./configure.py --prefix=$out
|
2015-03-28 20:54:27 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = http://libclc.llvm.org/;
|
2015-05-13 14:32:32 +01:00
|
|
|
description = "Implementation of the library requirements of the OpenCL C programming language";
|
2015-03-28 20:54:27 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = with maintainers; [ wkennington ];
|
|
|
|
};
|
|
|
|
}
|