16166f115b
Maintain the gfx1151 SDK locally using the official AMD archive. Use the TheRock patchelf pin and adapt LLVM auxiliary tools for pure Nix builds. Verify SDK installation, HIP and rocBLAS GPU operations, and rebuild its consumers. Document the internal rc3 stamp and upstream migration findings.
24 lines
787 B
Nix
24 lines
787 B
Nix
{
|
|
patchelf,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
autoreconfHook,
|
|
}:
|
|
# Match TheRock's dockerfiles/build_manylinux_x86_64.Dockerfile. This includes
|
|
# NixOS/patchelf#544 and accepts the SDK's librocsparse ELF when extending RPATH.
|
|
(patchelf.override { inherit stdenv; }).overrideAttrs (old: {
|
|
pname = "patchelf-therock";
|
|
version = "0.18.0-therock-d0f70ee";
|
|
src = fetchFromGitHub {
|
|
owner = "NixOS";
|
|
repo = "patchelf";
|
|
rev = "d0f70eea5397606c486857e0a105e53ec123904a";
|
|
hash = "sha256-CWAlYVtcswIpOZj5Qyxswsy1pAnPUTTUDapJO9ar0Mc=";
|
|
};
|
|
nativeBuildInputs = (old.nativeBuildInputs or [ ]) ++ [ autoreconfHook ];
|
|
doCheck = true;
|
|
meta = old.meta // {
|
|
changelog = "https://github.com/NixOS/patchelf/blob/d0f70eea5397606c486857e0a105e53ec123904a/ChangeLog.md";
|
|
};
|
|
})
|