Merge pull request #305435 from marsam/add-ab-av1

ab-av1: init at 0.7.14

authored by Mario Rodas and committed by GitHub edb37e1b b1940d0b

+33
+33
pkgs/by-name/ab/ab-av1/package.nix
··· 1 + { lib, rustPlatform, fetchFromGitHub, installShellFiles }: 2 + 3 + rustPlatform.buildRustPackage rec { 4 + pname = "ab-av1"; 5 + version = "0.7.14"; 6 + 7 + src = fetchFromGitHub { 8 + owner = "alexheretic"; 9 + repo = "ab-av1"; 10 + rev = "v${version}"; 11 + hash = "sha256-cDabGXNzusVnp4exINqUitEL1HnzSgpcRtYXU5pSRhY="; 12 + }; 13 + 14 + cargoHash = "sha256-sW/673orvK+mIUqTijpNh4YGd9ZrgSveGT6F1O5OYfI="; 15 + 16 + nativeBuildInputs = [ installShellFiles ]; 17 + 18 + postInstall = '' 19 + installShellCompletion --cmd ab-av1 \ 20 + --bash <($out/bin/ab-av1 print-completions bash) \ 21 + --fish <($out/bin/ab-av1 print-completions fish) \ 22 + --zsh <($out/bin/ab-av1 print-completions zsh) 23 + ''; 24 + 25 + meta = with lib; { 26 + description = "AV1 re-encoding using ffmpeg, svt-av1 & vmaf"; 27 + homepage = "https://github.com/alexheretic/ab-av1"; 28 + changelog = "https://github.com/alexheretic/ab-av1/blob/${src.rev}/CHANGELOG.md"; 29 + license = licenses.mit; 30 + maintainers = [ maintainers.marsam ]; 31 + mainProgram = "ab-av1"; 32 + }; 33 + }