nixpkgs/pkgs/tools/video/rav1e/default.nix
Michael Weiss e3fa38ec16
rav1e: 0.3.2 -> 0.3.3
The Cargo.lock file is not included in the master branch but it is
currently added for the releases (e.g. [0]). Since the GitHub deploy
action currently fails for other reasons [1] we should use the
Cargo.lock from the repository instead.

[0]: 80573d2bf7
[1]: https://github.com/xiph/rav1e/issues/2373
2020-06-13 15:22:42 +02:00

33 lines
988 B
Nix

{ rustPlatform, fetchFromGitHub, lib, nasm }:
rustPlatform.buildRustPackage rec {
pname = "rav1e";
version = "0.3.3";
src = fetchFromGitHub {
owner = "xiph";
repo = "rav1e";
rev = "v${version}";
sha256 = "0a9dryag4x35a2c45qiq1j5xk9ydcpw1g6kici85d2yrc2z3hwrx";
};
cargoSha256 = "1xaincrmpicp0skf9788w5631x1hxvifvq06hh5ribdz79zclzx3";
nativeBuildInputs = [ nasm ];
meta = with lib; {
description = "The fastest and safest AV1 encoder";
longDescription = ''
rav1e is an AV1 video encoder. It is designed to eventually cover all use
cases, though in its current form it is most suitable for cases where
libaom (the reference encoder) is too slow.
Features: https://github.com/xiph/rav1e#features
'';
inherit (src.src.meta) homepage;
changelog = "https://github.com/xiph/rav1e/releases/tag/v${version}";
license = licenses.bsd2;
maintainers = [ maintainers.primeos ];
platforms = platforms.all;
};
}