20 stdenv.mkDerivation rec {
24 src = fetchFromGitHub {
28 sha256 = "sha256-lSZAwcqAHiuZkpYcVfwvZCfNmEF3xGN9S/HuZQrGeKU=";
30 glad = fetchFromGitHub {
33 rev = "b94680aee5b8ce01ae1644c5f2661769366c765a";
34 hash = "sha256-CrZy76gOGMpy9f1NuMK4tokZ57U//zYeNH5ZYY0SC2U=";
37 # This patch ensures that Forge does not try to fetch glad from GitHub and
38 # uses our sources that we've checked out via Nix.
39 patches = [ ./no-download-glad.patch ];
43 cp -R --no-preserve=mode,ownership ${glad} ./extern/fg_glad-src
44 ln -s ${opencl-clhpp} ./extern/cl2hpp
47 cmakeFlags = [ "-DFETCHCONTENT_FULLY_DISCONNECTED=ON" ];
71 description = "OpenGL interop library that can be used with ArrayFire or any other application using CUDA or OpenCL compute backend";
73 An OpenGL interop library that can be used with ArrayFire or any other application using CUDA or OpenCL compute backend.
74 The goal of Forge is to provide high performance OpenGL visualizations for C/C++ applications that use CUDA/OpenCL.
75 Forge uses OpenGL >=3.3 forward compatible contexts, so please make sure you have capable hardware before trying it out.
77 license = licenses.bsd3;
78 homepage = "https://arrayfire.com/";
79 platforms = platforms.linux;
80 maintainers = with maintainers; [ chessai twesterhout ];