depot/third_party/nixpkgs/pkgs/development/tools/analysis/oclgrind/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

28 lines
762 B
Nix

{ stdenv, fetchFromGitHub, cmake, llvmPackages, readline, python }:
stdenv.mkDerivation rec {
pname = "oclgrind";
version = "19.10";
src = fetchFromGitHub {
owner = "jrprice";
repo = "oclgrind";
rev = "v${version}";
sha256 = "12v5z5x3ls26p3y3yc4mqmh12cazc0nlrwvmfbn6cyg4af9dp0zn";
};
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 ];
};
}