2019-08-01 18:06:41 +02:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, llvmPackages, readline, python }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "oclgrind";
|
2019-12-09 15:28:57 +01:00
|
|
|
version = "19.10";
|
2019-08-01 18:06:41 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jrprice";
|
|
|
|
repo = "oclgrind";
|
|
|
|
rev = "v${version}";
|
2019-12-08 23:33:52 +01:00
|
|
|
sha256 = "12v5z5x3ls26p3y3yc4mqmh12cazc0nlrwvmfbn6cyg4af9dp0zn";
|
2019-08-01 18:06:41 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
buildInputs = [ llvmPackages.llvm llvmPackages.clang-unwrapped readline python ];
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DCLANG_ROOT=${llvmPackages.clang-unwrapped}"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "An OpenCL device simulator and debugger";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/jrprice/oclgrind";
|
2019-08-01 18:06:41 +02:00
|
|
|
license = licenses.bsd3;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ athas ];
|
|
|
|
};
|
|
|
|
}
|