Skip to content

Commit cf75cd6

Browse files
committedMar 20, 2025
libblake3: 1.6.1 -> 1.7.0
1 parent 17a718e commit cf75cd6

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed
 

‎pkgs/by-name/li/libblake3/package.nix

+11-2
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,19 @@
33
stdenv,
44
cmake,
55
fetchFromGitHub,
6+
tbb_2022_0,
7+
useTBB ? true,
68
}:
79

810
stdenv.mkDerivation (finalAttrs: {
911
pname = "libblake3";
10-
version = "1.5.5";
12+
version = "1.7.0";
1113

1214
src = fetchFromGitHub {
1315
owner = "BLAKE3-team";
1416
repo = "BLAKE3";
1517
tag = finalAttrs.version;
16-
hash = "sha256-2M8OQNmtWwfDcbZYspaxpGz2clpfILru//4+P6dClNw=";
18+
hash = "sha256-08D5hnU3I0VJ+RM/TNk2LxsEAvOLuO52+08zlKssXbc=";
1719
};
1820

1921
sourceRoot = finalAttrs.src.name + "/c";
@@ -22,6 +24,13 @@ stdenv.mkDerivation (finalAttrs: {
2224
cmake
2325
];
2426

27+
buildInputs = lib.optionals useTBB [ tbb_2022_0 ];
28+
29+
cmakeFlags = [
30+
(lib.cmakeBool "BLAKE3_USE_TBB" useTBB)
31+
(lib.cmakeBool "BUILD_SHARED_LIBS" (!stdenv.hostPlatform.isStatic))
32+
];
33+
2534
meta = {
2635
description = "Official C implementation of BLAKE3";
2736
homepage = "https://github.com/BLAKE3-team/BLAKE3/tree/master/c";

0 commit comments

Comments
 (0)
Failed to load comments.