Unverified Commit b49ff29c authored by silvanshade's avatar silvanshade
Browse files

libblake3: 1.6.1 -> 1.7.0

parent cd9a523a
Loading
Loading
Loading
Loading
+8 −5
Original line number Diff line number Diff line
@@ -3,26 +3,29 @@
  stdenv,
  cmake,
  fetchFromGitHub,
  tbb_2022_0,
  useTBB ? true,
}:

stdenv.mkDerivation (finalAttrs: {
  pname = "libblake3";
  version = "1.6.1";
  version = "1.7.0";

  src = fetchFromGitHub {
    owner = "BLAKE3-team";
    repo = "BLAKE3";
    tag = finalAttrs.version;
    hash = "sha256-YJ3rRzpmF6oS8p377CEoRteARCD1lr/L7/fbN5poUXw=";
    hash = "sha256-08D5hnU3I0VJ+RM/TNk2LxsEAvOLuO52+08zlKssXbc=";
  };

  sourceRoot = finalAttrs.src.name + "/c";

  nativeBuildInputs = [
    cmake
  ];
  nativeBuildInputs = [ cmake ];

  buildInputs = lib.optionals useTBB [ tbb_2022_0 ];

  cmakeFlags = [
    (lib.cmakeBool "BLAKE3_USE_TBB" useTBB)
    (lib.cmakeBool "BUILD_SHARED_LIBS" (!stdenv.hostPlatform.isStatic))
  ];