Running hashcat fails with: clGetPlatformIDs(): CL_PLATFORM_NOT_FOUND_KHR

I just installed hashcat from nixpkgs but when i try to run it it fails with :

hashcat (5.1.0) starting...


Started: Sat Mar 28 01:35:20 2020
Stopped: Sat Mar 28 01:35:20 2020

I checked :

there it would include opencl-headers and ocl-icd .

I checked online some results suggest installing the opencl runtime, though i can’t find anything on nixpkgs. Am i missing something ?

Does anyone have an Idea how to fix this issue ? Is there something i should add in hardware-configuration.nix to solve this issue ? Maybe some drivers ?


My system has a AMD Ryzen 1700 CPU with an NVIDA GTX 1070Ti Graphics card.

this is likely a driver issue, did you install the nvidia drivers?

1 Like

Thank you that was it.

I added : services.xserver.videoDrivers = ["nvidia" ]; to /etc/nixos/configuration.nix and rebooted my machine now it’s working

1 Like