3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/tools/analysis/oclgrind/default.nix
Troels Henriksen 7d5f527fc0 oclgrind: init at 18.3. (#63159)
oclgrind: init at 18.3
2019-08-01 18:06:41 +02:00

29 lines
793 B
Nix

{ stdenv, fetchFromGitHub, cmake, llvmPackages, readline, python }:
stdenv.mkDerivation rec {
pname = "oclgrind";
version = "18.3"; # see comment in all-packages.nix
src = fetchFromGitHub {
owner = "jrprice";
repo = "oclgrind";
rev = "v${version}";
sha256 = "0s42z3dg684a0gk8qyx2h08cbh95zkrdaaj9y71rrc5bjsg8197x";
};
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";
homepage = https://github.com/jrprice/oclgrind;
license = licenses.bsd3;
platforms = platforms.linux;
maintainers = with maintainers; [ athas ];
};
}