3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/libraries/cl/default.nix
R. RyanTM cddea0fdc0 cl: 1.2.3 -> 1.2.4
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/cl/versions
2018-10-03 12:33:14 -07:00

35 lines
870 B
Nix

{stdenv, fetchFromGitHub, rebar, erlang, opencl-headers, ocl-icd }:
stdenv.mkDerivation rec {
version = "1.2.4";
name = "cl-${version}";
src = fetchFromGitHub {
owner = "tonyrog";
repo = "cl";
rev = "cl-${version}";
sha256 = "1gwkjl305a0231hz3k0w448dsgbgdriaq764sizs5qfn59nzvinz";
};
buildInputs = [ erlang rebar opencl-headers ocl-icd ];
buildPhase = ''
rebar compile
'';
# 'cp' line taken from Arch recipe
# https://projects.archlinux.org/svntogit/community.git/tree/trunk/PKGBUILD?h=packages/erlang-sdl
installPhase = ''
DIR=$out/lib/erlang/lib/${name}
mkdir -p $DIR
cp -ruv c_src doc ebin include priv src $DIR
'';
meta = with stdenv.lib; {
homepage = https://github.com/tonyrog/cl;
description = "OpenCL binding for Erlang";
license = licenses.mit;
platforms = platforms.linux;
};
}