diff options
Diffstat (limited to 'nixpkgs/pkgs/tools/video/svt-av1/default.nix')
-rw-r--r-- | nixpkgs/pkgs/tools/video/svt-av1/default.nix | 43 |
1 files changed, 28 insertions, 15 deletions
diff --git a/nixpkgs/pkgs/tools/video/svt-av1/default.nix b/nixpkgs/pkgs/tools/video/svt-av1/default.nix index 3d633c2da254..2d722d7037a8 100644 --- a/nixpkgs/pkgs/tools/video/svt-av1/default.nix +++ b/nixpkgs/pkgs/tools/video/svt-av1/default.nix @@ -1,20 +1,35 @@ -{ lib, stdenv, fetchFromGitLab, cmake, nasm }: +{ lib +, stdenv +, fetchFromGitLab +, gitUpdater +, cmake +, nasm +}: -stdenv.mkDerivation rec { +stdenv.mkDerivation (finalAttrs: { pname = "svt-av1"; - version = "1.2.0"; + version = "1.5.0"; src = fetchFromGitLab { owner = "AOMediaCodec"; repo = "SVT-AV1"; - rev = "v${version}"; - sha256 = "sha256-mUWWYaExEd/WkIYb1d8AduioHBxGp4Nn7Trhe2vv6Z0="; + rev = "v${finalAttrs.version}"; + sha256 = "sha256-EBWtvHOcFa6co0NeYns7Wkhz3LhqWJIRjBWfCrWJyss="; }; - nativeBuildInputs = [ cmake nasm ]; + nativeBuildInputs = [ + cmake + nasm + ]; + + passthru.updateScript = gitUpdater { + rev-prefix = "v"; + }; meta = with lib; { + homepage = "https://gitlab.com/AOMediaCodec/SVT-AV1"; description = "AV1-compliant encoder/decoder library core"; + longDescription = '' The Scalable Video Technology for AV1 (SVT-AV1 Encoder and Decoder) is an AV1-compliant encoder/decoder library core. The SVT-AV1 encoder @@ -23,14 +38,12 @@ stdenv.mkDerivation rec { SVT-AV1 decoder implementation is targeting future codec research activities. ''; - inherit (src.meta) homepage; - changelog = "https://gitlab.com/AOMediaCodec/SVT-AV1/-/blob/v${version}/CHANGELOG.md"; - license = with licenses; [ - aom - bsd3 - ]; - platforms = platforms.unix; - broken = stdenv.isAarch64; # undefined reference to `cpuinfo_arm_linux_init' + + changelog = "https://gitlab.com/AOMediaCodec/SVT-AV1/-/blob/v${finalAttrs.version}/CHANGELOG.md"; + license = with licenses; [ aom bsd3 ]; maintainers = with maintainers; [ Madouura ]; + platforms = platforms.unix; + # error: use of undeclared identifier 'kCVPixelFormatType_444YpCbCr16BiPlanarVideoRange' + broken = stdenv.isAarch64 && stdenv.isDarwin; }; -} +}) |