forked from rarias/jungle
27 lines
386 B
Nix
27 lines
386 B
Nix
{
|
|
runCommand,
|
|
pocl,
|
|
clinfo,
|
|
writableTmpDirAsHomeHook,
|
|
}:
|
|
|
|
runCommand "clinfo-pocl"
|
|
{
|
|
nativeBuildInputs = [
|
|
clinfo
|
|
writableTmpDirAsHomeHook
|
|
];
|
|
|
|
requiredSystemFeatures = [ "sys-devices" ];
|
|
|
|
env = {
|
|
POCL_DEBUG = "error,warn";
|
|
OCL_ICD_VENDORS = "${pocl}/etc/OpenCL/vendors";
|
|
};
|
|
}
|
|
''
|
|
set -x
|
|
clinfo | tee $out
|
|
set +x
|
|
''
|