From dab3970f538225c5b742f8468e17b372cb19f460 Mon Sep 17 00:00:00 2001 From: FliegendeWurst Date: Thu, 17 Apr 2025 15:13:33 +0200 Subject: [PATCH] rocmPackages_6.rocm-runtime: fix shebangs correctly for strictDeps --- pkgs/development/rocm-modules/6/rocm-runtime/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/rocm-modules/6/rocm-runtime/default.nix b/pkgs/development/rocm-modules/6/rocm-runtime/default.nix index 4c67224e1808..626afc4ac775 100644 --- a/pkgs/development/rocm-modules/6/rocm-runtime/default.nix +++ b/pkgs/development/rocm-modules/6/rocm-runtime/default.nix @@ -43,6 +43,7 @@ stdenv.mkDerivation (finalAttrs: { elfutils libdrm numactl + # without valgrind, additional work for "kCodeCopyAligned11" is done in the installPhase valgrind libxml2 ]; @@ -85,6 +86,10 @@ stdenv.mkDerivation (finalAttrs: { ]; postPatch = '' + patchShebangs --build \ + runtime/hsa-runtime/core/runtime/trap_handler/create_trap_handler_header.sh \ + runtime/hsa-runtime/core/runtime/blit_shaders/create_blit_shader_header.sh \ + runtime/hsa-runtime/image/blit_src/create_hsaco_ascii_file.sh patchShebangs --host image core runtime substituteInPlace CMakeLists.txt \