dovi-tool: init at 2.2.0 (#383196)

This commit is contained in:
Gaétan Lepage
2025-03-11 09:49:19 +01:00
committed by GitHub
2 changed files with 61 additions and 0 deletions
+6
View File
@@ -18707,6 +18707,12 @@
github = "pladypus";
githubId = 56337621;
};
plamper = {
name = "Felix Plamper";
email = "felix.plamper@tuta.io";
github = "plamper";
githubId = 59016721;
};
plchldr = {
email = "mail@oddco.de";
github = "plchldr";
+55
View File
@@ -0,0 +1,55 @@
{
lib,
rustPlatform,
fetchFromGitHub,
pkg-config,
fontconfig,
versionCheckHook,
nix-update-script,
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "dovi-tool";
version = "2.2.0";
src = fetchFromGitHub {
owner = "quietvoid";
repo = "dovi_tool";
tag = finalAttrs.version;
hash = "sha256-z783L6gBr9o44moKYZGwymWEMp5ZW7yOhZcpvbznXK4=";
};
useFetchCargoVendor = true;
cargoHash = "sha256-pwB6QBLeHALbYZHzTBm/ODLPHhxM3B5n+B/0iXYNuVc=";
nativeBuildInputs = [
pkg-config
];
buildInputs = [
fontconfig
];
checkFlags = [
# fails because nix-store is read only
"--skip=rpu::plot::plot_p7"
];
nativeInstallCheckInputs = [
versionCheckHook
];
versionCheckProgram = "${placeholder "out"}/bin/dovi_tool";
versionCheckProgramArg = "--version";
doInstallCheck = true;
passthru.updateScript = nix-update-script { };
meta = {
description = "CLI tool combining multiple utilities for working with Dolby Vision";
homepage = "https://github.com/quietvoid/dovi_tool";
changelog = "https://github.com/quietvoid/dovi_tool/releases";
mainProgram = "dovi_tool";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ plamper ];
};
})