blob: 289fa20335a07526cecb83b2666a823bfe5de2dc (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
{ stdenv, fetchFromGitHub, python2, llvm, clang }:
stdenv.mkDerivation {
name = "libclc-2015-08-07";
src = fetchFromGitHub {
owner = "llvm-mirror";
repo = "libclc";
rev = "f97d9db40718f2e68b3f0b44200760d8e0d50532";
sha256 = "10n9qk1dild9yjkjjkzpmp9zid3ysdgvqrad554azcf755frch7g";
};
buildInputs = [ python2 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.interpreter} ./configure.py --prefix=$out
'';
meta = with stdenv.lib; {
homepage = http://libclc.llvm.org/;
description = "Implementation of the library requirements of the OpenCL C programming language";
license = licenses.mit;
platforms = platforms.all;
maintainers = with maintainers; [ wkennington ];
};
}
|