chromium,chromedriver: 129.0.6668.91 -> 129.0.6668.100
[NixPkgs.git] / pkgs / by-name / ab / ab-av1 / package.nix
blob5c2a5f8f43e60c5db678152b599afa1e23a335ea
1 { lib, rustPlatform, fetchFromGitHub, installShellFiles, stdenv }:
3 rustPlatform.buildRustPackage rec {
4   pname = "ab-av1";
5   version = "0.7.18";
7   src = fetchFromGitHub {
8     owner = "alexheretic";
9     repo = "ab-av1";
10     rev = "v${version}";
11     hash = "sha256-n8yclhjeEkkge9xHuM4ZW+7aubIiLWwxCmmGTI1bE9I=";
12   };
14   cargoHash = "sha256-Rn+y1W2Cimt5JrD2dLmvLmZshxyLO7N+oIALwGjxhvM=";
16   nativeBuildInputs = [ installShellFiles ];
18   postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
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   '';
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 = [ ];
31     mainProgram = "ab-av1";
32   };