nixpkgs/pkgs/by-name/oc/oclgrind/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
797 B
Nix
Raw Normal View History

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