about summary refs log tree commit diff
path: root/pkgs/development/libraries/opencl-headers
diff options
context:
space:
mode:
authorLluís Batlle i Rossell <viric@viric.name>2016-03-29 12:23:12 +0200
committerLluís Batlle i Rossell <viric@viric.name>2016-03-29 12:24:42 +0200
commitf6a44bea9e5cfb07dc283f2c7c222f9e0dbadf18 (patch)
tree28836f4cbad86dcf37edc1f43f189d27baf7e16d /pkgs/development/libraries/opencl-headers
parente69306c46394f98e8ae53dd21dea3d0495a90780 (diff)
Updating wings and dependencies to match erlang
I updated the erlang esdl lib, added the erlang cl lib,
added opencl-headers and ocl-icd to make wings build and run.

I have not tested its opencl part; I only added dependencies so
it builds.
Diffstat (limited to 'pkgs/development/libraries/opencl-headers')
-rw-r--r--pkgs/development/libraries/opencl-headers/default.nix23
1 files changed, 23 insertions, 0 deletions
diff --git a/pkgs/development/libraries/opencl-headers/default.nix b/pkgs/development/libraries/opencl-headers/default.nix
new file mode 100644
index 0000000000000..9b931894f66fb
--- /dev/null
+++ b/pkgs/development/libraries/opencl-headers/default.nix
@@ -0,0 +1,23 @@
+{ stdenv, fetchFromGitHub, cmake }:
+
+stdenv.mkDerivation rec {
+  name = "opencl-headers-2.1.0";
+
+  src = fetchFromGitHub {
+    owner = "KhronosGroup";
+    repo = "OpenCL-Headers";
+    rev = "c1770dcc6cf1daadec1905e7393f3691c1dde200";
+    sha256 = "0m9fkblqja0686i2jjqiszvq3df95gp01a2674xknlmkd6525rck";
+  };
+
+  installPhase = ''
+    mkdir -p $out/include/CL
+    cp * $out/include/CL
+  '';
+
+  meta = with stdenv.lib; {
+    description = "Khronos OpenCL headers";
+    homepage = https://www.khronos.org/registry/cl/;
+    license = licenses.mit;
+  };
+}