2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv
|
2020-04-24 23:36:52 +00:00
|
|
|
, fetchzip
|
|
|
|
, pkg-config
|
|
|
|
, autoPatchelfHook
|
|
|
|
, installShellFiles
|
|
|
|
, ocl-icd
|
|
|
|
, zlib
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "computecpp";
|
2023-07-15 17:15:38 +00:00
|
|
|
version = "2.11.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchzip {
|
2020-11-30 08:33:03 +00:00
|
|
|
url = "https://computecpp.codeplay.com/downloads/computecpp-ce/${version}/x86_64-linux-gnu.tar.gz";
|
2023-07-15 17:15:38 +00:00
|
|
|
hash = "sha256-xHOPuijx5TZeHzRHPXcll0WqoBzHBryIoe3BnOxBVVY=";
|
2020-04-24 23:36:52 +00:00
|
|
|
stripRoot = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
dontStrip = true;
|
|
|
|
|
2020-11-30 08:33:03 +00:00
|
|
|
buildInputs = [ stdenv.cc.cc.lib ocl-icd zlib ];
|
2020-04-24 23:36:52 +00:00
|
|
|
nativeBuildInputs = [ autoPatchelfHook pkg-config installShellFiles ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
find ./lib -type f -exec install -D -m 0755 {} -t $out/lib \;
|
|
|
|
find ./bin -type l -exec install -D -m 0755 {} -t $out/bin \;
|
|
|
|
find ./bin -type f -exec install -D -m 0755 {} -t $out/bin \;
|
|
|
|
find ./doc -type f -exec install -D -m 0644 {} -t $out/doc \;
|
|
|
|
find ./include -type f -exec install -D -m 0644 {} -t $out/include \;
|
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
|
|
|
passthru = {
|
|
|
|
isClang = true;
|
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description =
|
|
|
|
"Accelerate Complex C++ Applications on Heterogeneous Compute Systems using Open Standards";
|
|
|
|
homepage = "https://www.codeplay.com/products/computesuite/computecpp";
|
|
|
|
license = licenses.unfree;
|
|
|
|
maintainers = with maintainers; [ davidtwco ];
|
|
|
|
platforms = [ "x86_64-linux" ];
|
|
|
|
};
|
|
|
|
}
|