diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 61322bebc395..e98397bb21db 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -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"; diff --git a/pkgs/by-name/do/dovi-tool/package.nix b/pkgs/by-name/do/dovi-tool/package.nix new file mode 100644 index 000000000000..1c08f738a2e5 --- /dev/null +++ b/pkgs/by-name/do/dovi-tool/package.nix @@ -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 ]; + }; +})