Merge pull request #305435 from marsam/add-ab-av1
ab-av1: init at 0.7.14
This commit is contained in:
commit
edb37e1b3c
33
pkgs/by-name/ab/ab-av1/package.nix
Normal file
33
pkgs/by-name/ab/ab-av1/package.nix
Normal file
|
@ -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";
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user