diff options
| author | seth <getchoo@tuta.io> | 2025-01-03 00:54:24 -0500 |
|---|---|---|
| committer | github-actions[bot] <github-actions[bot]@users.noreply.github.com> | 2025-02-01 13:03:15 +0000 |
| commit | 643874e1df9430bc3e337daf97682cffaafea088 (patch) | |
| tree | b9d087ac6a2a864464d685a6561d604ad3f988d5 | |
| parent | av1an: mark broken on x86_64-darwin (diff) | |
| download | nixpkgs-origin/backport-370509-to-release-24.11.tar.gz | |
av1an: 0.4.3 -> 0.4.4origin/backport-370509-to-release-24.11
Diff: https://github.com/master-of-zen/av1an/compare/refs/tags/0.4.3...0.4.4
Changelog: https://github.com/master-of-zen/Av1an/releases/tag/0.4.4
(cherry picked from commit 9546eca07967046f4e567b166a9e7bf85ca72935)
| -rw-r--r-- | pkgs/by-name/av/av1an-unwrapped/package.nix | 27 | ||||
| -rw-r--r-- | pkgs/by-name/av/av1an/package.nix | 40 |
2 files changed, 40 insertions, 27 deletions
diff --git a/pkgs/by-name/av/av1an-unwrapped/package.nix b/pkgs/by-name/av/av1an-unwrapped/package.nix index 7defc170f9f3..e4f31ba85930 100644 --- a/pkgs/by-name/av/av1an-unwrapped/package.nix +++ b/pkgs/by-name/av/av1an-unwrapped/package.nix @@ -1,29 +1,40 @@ { lib, stdenv, - rustPlatform, fetchFromGitHub, - pkg-config, + fetchpatch, ffmpeg, - nasm, - vapoursynth, libaom, - rav1e, + nasm, nix-update-script, + pkg-config, + rav1e, + rustPlatform, + vapoursynth, }: rustPlatform.buildRustPackage rec { pname = "av1an-unwrapped"; - version = "0.4.3"; + version = "0.4.4"; src = fetchFromGitHub { owner = "master-of-zen"; repo = "av1an"; tag = version; - hash = "sha256-Mb5I+9IBwpfmK1w4LstNHI/qsJKlCuRxgSUiqpwUqF0="; + hash = "sha256-YF+j349777pE+evvXWTo42DQn1CE0jlfKBEXUFTfcb8="; }; - cargoHash = "sha256-IWcSaJoakXSPIdycWIikGSmOk+D4A3aMnJwuiKn8XNY="; + cargoPatches = [ + # TODO: Remove in next version + # Avoids https://github.com/shssoichiro/ffmpeg-the-third/issues/63 + # https://github.com/master-of-zen/Av1an/pull/912 + (fetchpatch { + url = "https://github.com/master-of-zen/Av1an/commit/e6b29a5a624434eb0dc95b7e8aa31ccf624ccb9d.patch"; + hash = "sha256-nFE04hlTzApYafSzgl/XOUdchxEjKvxXy+SKr/d6+0Q="; + }) + ]; + + cargoHash = "sha256-4+JyWymj0yFsXw+7im+ye4rJmkc8nyg+7d1U/MTOerk="; nativeBuildInputs = [ nasm diff --git a/pkgs/by-name/av/av1an/package.nix b/pkgs/by-name/av/av1an/package.nix index 2756da4fbd09..2a7b7c05e527 100644 --- a/pkgs/by-name/av/av1an/package.nix +++ b/pkgs/by-name/av/av1an/package.nix @@ -1,19 +1,21 @@ { lib, - symlinkJoin, - makeBinaryWrapper, + av1an, av1an-unwrapped, ffmpeg, - python3, libaom, - svt-av1, - rav1e, + libvmaf, libvpx, + makeBinaryWrapper, + mkvtoolnix-cli, + python3, + rav1e, + svt-av1, + symlinkJoin, + testers, + vapoursynth, x264, x265, - libvmaf, - vapoursynth, - mkvtoolnix-cli, withAom ? true, # AV1 reference encoder withSvtav1 ? false, # AV1 encoder/decoder (focused on speed and correctness) withRav1e ? false, # AV1 encoder (focused on speed and safety) @@ -27,15 +29,16 @@ # av1an requires at least one encoder assert lib.assertMsg (lib.elem true [ withAom - withSvtav1 withRav1e + withSvtav1 withVpx withX264 withX265 ]) "At least one encoder is required!"; symlinkJoin { - name = "av1an-${av1an-unwrapped.version}"; + pname = "av1an"; + inherit (av1an-unwrapped) version; paths = [ av1an-unwrapped ]; @@ -49,13 +52,13 @@ symlinkJoin { (ffmpeg.override { inherit withVmaf; }) ] ++ lib.optional withAom libaom - ++ lib.optional withSvtav1 svt-av1 + ++ lib.optional withMkvtoolnix mkvtoolnix-cli ++ lib.optional withRav1e rav1e + ++ lib.optional withSvtav1 svt-av1 + ++ lib.optional withVmaf libvmaf ++ lib.optional withVpx libvpx ++ lib.optional withX264 x264 - ++ lib.optional withX265 x265 - ++ lib.optional withVmaf libvmaf - ++ lib.optional withMkvtoolnix mkvtoolnix-cli; + ++ lib.optional withX265 x265; in '' wrapProgram $out/bin/av1an \ @@ -65,11 +68,10 @@ symlinkJoin { ''; passthru = { - # TODO: uncomment when upstream actually bumps CARGO_PKG_VERSION - #tests.version = testers.testVersion { - # package = av1an; - # inherit (av1an-unwrapped) version; - #}; + tests.version = testers.testVersion { + package = av1an; + inherit (av1an-unwrapped) version; + }; }; meta = { |
