diff options
author | Mario Rodas <marsam@users.noreply.github.com> | 2024-04-19 04:20:00 +0000 |
---|---|---|
committer | Mario Rodas <marsam@users.noreply.github.com> | 2024-04-19 04:20:00 +0000 |
commit | 0113a28f5fc0fbe9ca339f0041112c88f115de8d (patch) | |
tree | aac2d5f54dafd6269658eaac956fe60a4d345b7e /pkgs/by-name/ab | |
parent | 839d899811d74a3878de2d929f30d766fa9abd68 (diff) |
ab-av1: init at 0.7.14
Diffstat (limited to 'pkgs/by-name/ab')
-rw-r--r-- | pkgs/by-name/ab/ab-av1/package.nix | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/by-name/ab/ab-av1/package.nix b/pkgs/by-name/ab/ab-av1/package.nix new file mode 100644 index 0000000000000..a92e021f67e3a --- /dev/null +++ b/pkgs/by-name/ab/ab-av1/package.nix @@ -0,0 +1,33 @@ +{ lib, rustPlatform, fetchFromGitHub, installShellFiles }: + +rustPlatform.buildRustPackage rec { + pname = "ab-av1"; + version = "0.7.14"; + + src = fetchFromGitHub { + owner = "alexheretic"; + repo = "ab-av1"; + rev = "v${version}"; + hash = "sha256-cDabGXNzusVnp4exINqUitEL1HnzSgpcRtYXU5pSRhY="; + }; + + cargoHash = "sha256-sW/673orvK+mIUqTijpNh4YGd9ZrgSveGT6F1O5OYfI="; + + nativeBuildInputs = [ installShellFiles ]; + + postInstall = '' + installShellCompletion --cmd ab-av1 \ + --bash <($out/bin/ab-av1 print-completions bash) \ + --fish <($out/bin/ab-av1 print-completions fish) \ + --zsh <($out/bin/ab-av1 print-completions zsh) + ''; + + meta = with lib; { + description = "AV1 re-encoding using ffmpeg, svt-av1 & vmaf"; + homepage = "https://github.com/alexheretic/ab-av1"; + changelog = "https://github.com/alexheretic/ab-av1/blob/${src.rev}/CHANGELOG.md"; + license = licenses.mit; + maintainers = [ maintainers.marsam ]; + mainProgram = "ab-av1"; + }; +} |