diff --git a/pkgs/llvm-ompss2/default.nix b/pkgs/llvm-ompss2/default.nix index a6958a171..b003dafbd 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; }; })