uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
36
pkgs/development/libraries/cl/default.nix
Normal file
36
pkgs/development/libraries/cl/default.nix
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
{lib, stdenv, fetchFromGitHub, rebar, erlang, opencl-headers, ocl-icd }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
version = "1.2.4";
|
||||
pname = "cl";
|
||||
|
||||
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/${pname}-${version}
|
||||
mkdir -p $DIR
|
||||
cp -ruv c_src doc ebin include priv src $DIR
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/tonyrog/cl";
|
||||
description = "OpenCL binding for Erlang";
|
||||
license = licenses.mit;
|
||||
# https://github.com/tonyrog/cl/issues/39
|
||||
broken = stdenv.isAarch64;
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue