intel-oneapi-toolkit: tweaks, fixes

This commit is contained in:
kilyanni
2026-05-18 17:37:58 +02:00
parent 98cfa247f3
commit 6547eb519c
2 changed files with 9 additions and 10 deletions
@@ -55,11 +55,12 @@
libuuid,
sqlite,
libffi,
bash,
# The list of components to install;
# Either [ "all" ], [ "default" ], or a custom list of components.
# If you want to install all default components plus an extra one, pass [ "default" <your extra components here> ]
# Note that changing this will also change the `buildInputs` of the derivation.
components ? [ "default" ],
components ? [ "all" ],
}:
let
shortName = name: builtins.elemAt (lib.splitString "." name) 3;
@@ -135,21 +136,16 @@ in
extendDrvArgs =
finalAttrs:
{
pname,
versionYear,
versionMajor,
versionMinor,
versionRel,
src,
meta,
depsByComponent ? { },
postInstall ? "",
components ? [ "default" ],
...
}:
{
version = "${finalAttrs.versionYear}.${finalAttrs.versionMajor}.${finalAttrs.versionMinor}.${finalAttrs.versionRel}";
strictDeps = true;
__structuredAttrs = true;
nativeBuildInputs = [
ncurses5
bc
@@ -160,6 +156,8 @@ in
buildInputs = [
python3
# Required for patchShebangs to discover the correct interpreter
bash
]
++ lib.concatMap (
comp:
@@ -205,7 +203,7 @@ in
rm -rf "$out"/logs
rm -rf "$out"/.toolkit_linking_tool
ln -s "$out/$versionYear.$versionMajor"/{lib,etc,bin,share,opt} "$out"
ln -s "$out/$versionYear.$versionMajor"/{lib,etc,bin,share,opt,include} "$out"
runHook postInstall
'';
@@ -50,6 +50,7 @@
# sycl-ls, sycl-trace: doesn't respect --help
regex_skip="(.*-32)|(IMB-.*)|fi_info|fi_pingpong|gdb-oneapi|hydra_bstrap_proxy|hydra_nameserver|hydra_pmi_proxy|mpirun|sycl-ls|sycl-trace"
export I_MPI_ROOT="${kit}/mpi/latest"
export PATH="${kit}/bin:$PATH"
for bin in "${kit}"/bin/*; do
if [[ "$bin" =~ $regex_skip ]] || [ ! -f "$bin" ] || [[ ! -x "$bin" ]]; then
echo "skipping $bin"