todds: init at 0.4.1 (#413001)

This commit is contained in:
Aleksana
2025-06-22 11:05:59 +08:00
committed by GitHub
2 changed files with 67 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index d41a1e2..7990cdf 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -60,7 +60,7 @@ if (TODDS_REGULAR_EXPRESSIONS)
endif ()
find_package(OpenCV 4.0 REQUIRED)
find_package(Threads REQUIRED)
-find_package(TBB 2021.5.0 REQUIRED)
+find_package(TBB REQUIRED)
if (TODDS_TRACY)
find_package(Tracy REQUIRED)
+54
View File
@@ -0,0 +1,54 @@
{
lib,
stdenv,
cmake,
ninja,
pkg-config,
ispc,
boost,
fmt,
hyperscan,
opencv,
tbb_2021,
fetchFromGitHub,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "todds";
version = "0.4.1";
patches = [ ./TBB-version.patch ];
src = fetchFromGitHub {
owner = "todds-encoder";
repo = "todds";
tag = finalAttrs.version;
hash = "sha256-nyYFYym9ZZskkaTPV30+QavdqpvVopnIXXZC6zkeu7c=";
fetchSubmodules = true;
};
nativeBuildInputs = [
cmake
ninja
pkg-config
ispc
];
buildInputs = [
boost
fmt
hyperscan
opencv
tbb_2021
];
strictDeps = true;
meta = {
description = "CPU-based DDS encoder optimized for fast batch conversions with high encoding quality";
homepage = "https://github.com/todds-encoder/todds";
license = lib.licenses.mpl20;
maintainers = with lib.maintainers; [ weirdrock ];
mainProgram = "todds";
platforms = lib.platforms.linux;
};
})