Commit 9a43486f authored by Tim Schumacher's avatar Tim Schumacher
Browse files

libblake3: Use tbb32 pkgconfig package on 32-bit builds

parent ccd123f7
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -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 ];