forked from mirrors/nixpkgs
libclc: Add derivation
This commit is contained in:
parent
a9806e86d6
commit
53336e7a91
30
pkgs/development/libraries/libclc/default.nix
Normal file
30
pkgs/development/libraries/libclc/default.nix
Normal file
|
@ -0,0 +1,30 @@
|
|||
{ stdenv, fetchsvn, python, llvm, clang }:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "libclc-2015-03-27";
|
||||
|
||||
src = fetchsvn {
|
||||
url = "http://llvm.org/svn/llvm-project/libclc/trunk";
|
||||
rev = "233456";
|
||||
sha256 = "0g56kgffc1qr9rzhcjr4w8kljcicg0q828s9b4bmfzjvywd7hhr0";
|
||||
};
|
||||
|
||||
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/;
|
||||
description = "implementation of the library requirements of the OpenCL C programming language";
|
||||
license = licenses.mit;
|
||||
platforms = platforms.all;
|
||||
maintainers = with maintainers; [ wkennington ];
|
||||
};
|
||||
}
|
|
@ -6209,6 +6209,8 @@ let
|
|||
|
||||
libchop = callPackage ../development/libraries/libchop { };
|
||||
|
||||
libclc = callPackage ../development/libraries/libclc { };
|
||||
|
||||
libcli = callPackage ../development/libraries/libcli { };
|
||||
|
||||
libcm = callPackage ../development/libraries/libcm { };
|
||||
|
|
Loading…
Reference in a new issue