python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / development / libraries / cl / default.nix
bloba4b526ea25d33c03315cfbb1b590fa0d89738559
1 {lib, stdenv, fetchFromGitHub, rebar, erlang, opencl-headers, ocl-icd }:
3 stdenv.mkDerivation rec {
4   version = "1.2.4";
5   pname = "cl";
7   src = fetchFromGitHub {
8     owner = "tonyrog";
9     repo = "cl";
10     rev = "cl-${version}";
11     sha256 = "1gwkjl305a0231hz3k0w448dsgbgdriaq764sizs5qfn59nzvinz";
12   };
14   buildInputs = [ erlang rebar opencl-headers ocl-icd ];
16   buildPhase = ''
17     rebar compile
18   '';
20   # 'cp' line taken from Arch recipe
21   # https://projects.archlinux.org/svntogit/community.git/tree/trunk/PKGBUILD?h=packages/erlang-sdl
22   installPhase = ''
23     DIR=$out/lib/erlang/lib/${pname}-${version}
24     mkdir -p $DIR
25     cp -ruv c_src doc ebin include priv src $DIR
26   '';
28   meta = with lib; {
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;
35   };