{ lib , stdenv , fetchFromGitHub , rocmUpdateScript , cmake , rocm-cmake , gfortran }: stdenv.mkDerivation (finalAttrs: { pname = "hipfort"; version = "5.6.0"; src = fetchFromGitHub { owner = "ROCmSoftwarePlatform"; repo = "hipfort"; rev = "rocm-${finalAttrs.version}"; hash = "sha256-x1pF9md7RIcobE/4UxHxOaURbljFZGOashW1KM0lmo0="; }; nativeBuildInputs = [ cmake rocm-cmake gfortran ]; cmakeFlags = [ "-DHIPFORT_COMPILER=${gfortran}/bin/gfortran" "-DHIPFORT_AR=${gfortran.cc}/bin/gcc-ar" "-DHIPFORT_RANLIB=${gfortran.cc}/bin/gcc-ranlib" # Manually define CMAKE_INSTALL_