Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at release-16.03 31 lines 891 B view raw
1{ stdenv, fetchFromGitHub, python, llvm, clang }: 2 3stdenv.mkDerivation { 4 name = "libclc-2015-08-07"; 5 6 src = fetchFromGitHub { 7 owner = "llvm-mirror"; 8 repo = "libclc"; 9 rev = "f97d9db40718f2e68b3f0b44200760d8e0d50532"; 10 sha256 = "10n9qk1dild9yjkjjkzpmp9zid3ysdgvqrad554azcf755frch7g"; 11 }; 12 13 buildInputs = [ python llvm clang ]; 14 15 postPatch = '' 16 sed -i 's,llvm_clang =.*,llvm_clang = "${clang}/bin/clang",' configure.py 17 sed -i 's,cxx_compiler =.*,cxx_compiler = "${clang}/bin/clang++",' configure.py 18 ''; 19 20 configurePhase = '' 21 python2 ./configure.py --prefix=$out 22 ''; 23 24 meta = with stdenv.lib; { 25 homepage = http://libclc.llvm.org/; 26 description = "Implementation of the library requirements of the OpenCL C programming language"; 27 license = licenses.mit; 28 platforms = platforms.all; 29 maintainers = with maintainers; [ wkennington ]; 30 }; 31}