1 { lib, stdenv, fetchFromGitHub, cmake, llvmPackages, readline, python3 }:
3 stdenv.mkDerivation rec {
7 src = fetchFromGitHub {
11 sha256 = "sha256-DGCF7X2rPV1w9guxg2bMylRirXQgez24sG7Unlct3ow=";
14 nativeBuildInputs = [ cmake ];
15 checkInputs = [ python3 ];
16 buildInputs = [ llvmPackages.llvm llvmPackages.clang-unwrapped readline ];
19 "-DCLANG_ROOT=${llvmPackages.clang-unwrapped}"
23 description = "An OpenCL device simulator and debugger";
24 homepage = "https://github.com/jrprice/oclgrind";
25 license = licenses.bsd3;
26 platforms = platforms.linux;
27 maintainers = with maintainers; [ athas ];