Unverified Commit b974a8a0 authored by John Ericson's avatar John Ericson Committed by GitHub
Browse files

libblake3: Use tbb32 pkgconfig package on 32-bit builds (#402739)

parents 510f5d17 9a43486f
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 ];