{ lib, stdenv, fetchFromGitHub, rocmUpdateScript, cmake, clr, python3, rocm-cmake, sqlite, boost, fftw, fftwFloat, gtest, openmp, rocrand, gpuTargets ? clr.localGpuTargets or clr.gpuTargets, }: stdenv.mkDerivation (finalAttrs: { pname = "rocfft${clr.gpuArchSuffix}"; version = "6.3.3"; src = fetchFromGitHub { owner = "ROCm"; repo = "rocFFT"; rev = "rocm-${finalAttrs.version}"; hash = "sha256-RrxdwZ64uC7lQzyJI1eGHX2dmRnW8TfNThnuvuz5XWo="; }; nativeBuildInputs = [ cmake clr python3 rocm-cmake ]; # FIXME: rocfft_aot_helper runs at the end of the build and has a risk of timing it out # due to a long period with no terminal output buildInputs = [ sqlite ]; cmakeFlags = [ "-DCMAKE_C_COMPILER=hipcc" "-DCMAKE_CXX_COMPILER=hipcc" "-DSQLITE_USE_SYSTEM_PACKAGE=ON" # Manually define CMAKE_INSTALL_