libblake3: Use tbb32 pkgconfig package on 32-bit builds

This commit is contained in:
Tim Schumacher
2025-04-29 07:27:41 +02:00
parent ccd123f7dd
commit 9a43486fe9
+10
View File
@@ -3,6 +3,7 @@
stdenv,
cmake,
fetchFromGitHub,
fetchpatch,
tbb_2021_11,
useTBB ? true,
@@ -19,6 +20,15 @@ stdenv.mkDerivation (finalAttrs: {
hash = "sha256-IABVErXWYQFXZcwsFKfQhm3ox7UZUcW5uzVrGwsSp94=";
};
patches = [
# build(cmake): Use tbb32 pkgconfig package on 32-bit builds (BLAKE3-team/BLAKE3#482)
(fetchpatch {
url = "https://github.com/BLAKE3-team/BLAKE3/commit/dab799623310c8f4be6575002d5c681c09a0e209.patch";
hash = "sha256-npCtM8nOFU8Tcu//IykjMs8aLU12d93+mIfKuxHkuaQ=";
relative = "c";
})
];
sourceRoot = finalAttrs.src.name + "/c";
nativeBuildInputs = [ cmake ];