From 79269111ec1ca22ea23da70d4b33695ecba9f76a Mon Sep 17 00:00:00 2001 From: Shelvacu Date: Wed, 17 Dec 2025 16:12:41 -0800 Subject: [PATCH 1/2] pkgsStatic.libblake3: disable oneTBB feature oneTBB does not support static builds --- pkgs/by-name/li/libblake3/package.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/li/libblake3/package.nix b/pkgs/by-name/li/libblake3/package.nix index e9aa977186280..a55c166df6a05 100644 --- a/pkgs/by-name/li/libblake3/package.nix +++ b/pkgs/by-name/li/libblake3/package.nix @@ -6,7 +6,8 @@ fetchpatch, onetbb, - useTBB ? true, + # TBB doesn't support being built static + useTBB ? !stdenv.hostPlatform.isStatic, }: stdenv.mkDerivation (finalAttrs: { From 71dc2e7df310d90a3c738e423fdfc13b710a8d67 Mon Sep 17 00:00:00 2001 From: Shelvacu Date: Wed, 17 Dec 2025 16:17:42 -0800 Subject: [PATCH 2/2] pkgsStatic.onetbb: mark unsupported --- pkgs/by-name/on/onetbb/package.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/by-name/on/onetbb/package.nix b/pkgs/by-name/on/onetbb/package.nix index f820dc7a80acd..927489863a7dd 100644 --- a/pkgs/by-name/on/onetbb/package.nix +++ b/pkgs/by-name/on/onetbb/package.nix @@ -100,6 +100,10 @@ stdenv.mkDerivation (finalAttrs: { performance of multi-core processors. ''; platforms = lib.platforms.all; + # oneTBB does not support static builds + # "You are building oneTBB as a static library. This is highly discouraged and such configuration is not supported. Consider building a dynamic library to avoid unforeseen issues." + # https://github.com/uxlfoundation/oneTBB/blob/db7891a246cafbb90719c3dee497d96889ca692b/CMakeLists.txt#L160 + badPlatforms = [ lib.systems.inspect.platformPatterns.isStatic ]; maintainers = with lib.maintainers; [ silvanshade thoughtpolice