forked from rarias/jungle
27 lines
401 B
Nix
27 lines
401 B
Nix
{
|
|
runCommand,
|
|
pocl,
|
|
clinfo,
|
|
writableTmpDirAsHomeHook,
|
|
}:
|
|
|
|
runCommand "clinfo-pocl"
|
|
{
|
|
nativeBuildInputs = [
|
|
clinfo
|
|
pocl
|
|
writableTmpDirAsHomeHook
|
|
];
|
|
|
|
requiredSystemFeatures = [ "sys-devices" ];
|
|
|
|
env.POCL_DEBUG = "error,warn";
|
|
}
|
|
''
|
|
echo $OCL_ICD_VENDORS
|
|
clinfo >$out
|
|
|
|
# check that we have PoCL:
|
|
grep "Portable Computing Language" $out
|
|
''
|