Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
55 lines
959 B
Nix
55 lines
959 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
cmake,
|
|
ninja,
|
|
pkg-config,
|
|
ispc,
|
|
boost,
|
|
fmt,
|
|
hyperscan,
|
|
opencv,
|
|
onetbb,
|
|
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
|
|
onetbb
|
|
];
|
|
|
|
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;
|
|
};
|
|
})
|