onetbb: always use hwloc built without CUDA support

Signed-off-by: Connor Baker <ConnorBaker01@gmail.com>
This commit is contained in:
Connor Baker
2026-01-15 23:48:15 +00:00
parent 33d8fe302a
commit 73195cf18e
+9 -4
View File
@@ -1,15 +1,20 @@
{
args@{
lib,
stdenv,
fetchFromGitHub,
fetchpatch,
cmake,
hwloc,
hwloc, # Purposefully shadowed below
ninja,
pkg-config,
ctestCheckHook,
}:
let
# The behavior of OneTBB does not change if it is built with hwloc with support for CUDA.
# However, the derivation *does* change, causing rebuilds of packages like Nix.
# To avoid these pointless rebuilds, we make sure to always use a version of hwloc with CUDA
# support disabled.
hwloc = args.hwloc.override { enableCuda = false; };
in
stdenv.mkDerivation (finalAttrs: {
pname = "onetbb";
version = "2022.3.0";