1 {lib, stdenv, fetchFromGitHub, rebar, erlang, opencl-headers, ocl-icd }:
3 stdenv.mkDerivation rec {
7 src = fetchFromGitHub {
10 rev = "cl-${version}";
11 sha256 = "1gwkjl305a0231hz3k0w448dsgbgdriaq764sizs5qfn59nzvinz";
14 buildInputs = [ erlang rebar opencl-headers ocl-icd ];
20 # 'cp' line taken from Arch recipe
21 # https://projects.archlinux.org/svntogit/community.git/tree/trunk/PKGBUILD?h=packages/erlang-sdl
23 DIR=$out/lib/erlang/lib/${pname}-${version}
25 cp -ruv c_src doc ebin include priv src $DIR
29 homepage = "https://github.com/tonyrog/cl";
30 description = "OpenCL binding for Erlang";
31 license = licenses.mit;
32 # https://github.com/tonyrog/cl/issues/39
33 broken = stdenv.isAarch64;
34 platforms = platforms.linux;