From d464e30e13f7aad9cd644d0830966a834a136648 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aleix=20Bon=C3=A9?= Date: Tue, 22 Jul 2025 14:17:32 +0200 Subject: [PATCH] Fix path in intel compiler wrapper --- pkgs/intel-oneapi/patch_intel.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkgs/intel-oneapi/patch_intel.nix b/pkgs/intel-oneapi/patch_intel.nix index 5fc977c..ac9483a 100644 --- a/pkgs/intel-oneapi/patch_intel.nix +++ b/pkgs/intel-oneapi/patch_intel.nix @@ -62,8 +62,10 @@ let echo "-isystem $dir" >> $out/nix-support/libcxx-cxxflags done - # Need the gcc in the path - echo 'export "PATH=${gcc}/bin:$PATH"' >> $out/nix-support/cc-wrapper-hook + # FIXME: We should find a better way to modify the PATH instead of using + # this ugly hack. See https://jungle.bsc.es/git/rarias/bscpkgs/issues/9 + echo 'path_backup="${gcc.cc}/bin:$path_backup"' >> $out/nix-support/cc-wrapper-hook + # Disable hardening by default echo "" > $out/nix-support/add-hardening.sh