From 1cb632a17023d9e0986a421a932a488759b086a7 Mon Sep 17 00:00:00 2001 From: Aleix Roca Nonell Date: Tue, 9 Sep 2025 16:47:23 +0200 Subject: [PATCH] Add ompss2rt to wrapper passthru --- pkgs/llvm-ompss2/default.nix | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pkgs/llvm-ompss2/default.nix b/pkgs/llvm-ompss2/default.nix index a6958a17..b003dafb 100644 --- a/pkgs/llvm-ompss2/default.nix +++ b/pkgs/llvm-ompss2/default.nix @@ -37,7 +37,7 @@ let inherit gcc; cc = clangOmpss2Unwrapped; gccVersion = with versions; let v = gcc.version; in concatStringsSep "." [(major v) (minor v) (patch v)]; -in wrapCCWith { +in (wrapCCWith { inherit cc bintools; # extraPackages adds packages to depsTargetTargetPropagated extraPackages = optional (openmp != null) openmp; @@ -67,5 +67,4 @@ in wrapCCWith { '' + optionalString (ompss2rt != null && ompss2rt.pname == "nodes") '' echo "export NOSV_HOME=${ompss2rt}" >> $out/nix-support/cc-wrapper-hook ''; -} - +}).overrideAttrs (prev: { passthru = (prev.passthru or {}) // { inherit ompss2rt; }; })