2023-11-18 22:58:50 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, llvmPackages_12, readline, python3 }:
|
2019-08-01 16:06:41 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "oclgrind";
|
2022-02-17 17:04:12 +00:00
|
|
|
version = "21.10";
|
2019-08-01 16:06:41 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jrprice";
|
|
|
|
repo = "oclgrind";
|
|
|
|
rev = "v${version}";
|
2022-02-17 17:04:12 +00:00
|
|
|
sha256 = "sha256-DGCF7X2rPV1w9guxg2bMylRirXQgez24sG7Unlct3ow=";
|
2019-08-01 16:06:41 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = [ python3 ];
|
2023-11-18 22:58:50 +00:00
|
|
|
buildInputs = [ llvmPackages_12.llvm llvmPackages_12.clang-unwrapped readline ];
|
2019-08-01 16:06:41 +00:00
|
|
|
|
|
|
|
cmakeFlags = [
|
2023-11-18 22:58:50 +00:00
|
|
|
"-DCLANG_ROOT=${llvmPackages_12.clang-unwrapped}"
|
2019-08-01 16:06:41 +00:00
|
|
|
];
|
|
|
|
|
2021-01-23 12:26:19 +00:00
|
|
|
meta = with lib; {
|
2019-08-01 16:06:41 +00:00
|
|
|
description = "OpenCL device simulator and debugger";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/jrprice/oclgrind";
|
2019-08-01 16:06:41 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ athas ];
|
|
|
|
};
|
|
|
|
}
|