nixpkgs-suyu/pkgs/development/libraries/libclc/default.nix
Linus Heckemann 5aa4b19946 treewide: mark some broken packages as broken
Refs:
e6754980264fe927320d5ff2dbd24ca4fac9a160
1e9cc5b9844ef603fe160e9f671178f96200774f
793a2fe1e8bb886ca2096c5904e1193dc3268b6d
c19cf65261639f749012454932a532aa7c681e4b
f6544d618f30fae0bc4798c4387a8c7c9c047a7c
2019-10-08 17:14:26 +02:00

37 lines
965 B
Nix

{ stdenv, fetchFromGitHub, python, llvmPackages }:
let
llvm = llvmPackages.llvm;
clang = llvmPackages.clang;
in
stdenv.mkDerivation {
name = "libclc-2017-11-29";
src = fetchFromGitHub {
owner = "llvm-mirror";
repo = "libclc";
rev = "d6384415ab854c68777dd77451aa2bc0d959da99";
sha256 = "10fqrlnqlknh58x7pfsbg9r07fblfg2mgq2m4fr1jbb836ncn3wh";
};
nativeBuildInputs = [ python ];
buildInputs = [ 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 = ''
${python.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;
broken = true;
};
}