{ lib , stdenv , fetchFromGitHub , rocmUpdateScript , cmake , wrapPython }: stdenv.mkDerivation (finalAttrs: { pname = "rocm-smi"; version = "5.7.0"; src = fetchFromGitHub { owner = "RadeonOpenCompute"; repo = "rocm_smi_lib"; rev = "rocm-${finalAttrs.version}"; hash = "sha256-swCRO4PBMBJ6fO2bLq/xxFZIYw2IgiFB490wsU8Wm2o="; }; patches = [ ./cmake.patch ]; nativeBuildInputs = [ cmake wrapPython ]; cmakeFlags = [ # Manually define CMAKE_INSTALL_