bcb2f287e1
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
64 lines
1.5 KiB
Nix
64 lines
1.5 KiB
Nix
{ callPackage, darwin }:
|
|
|
|
let
|
|
mkFFmpeg =
|
|
initArgs: ffmpegVariant:
|
|
callPackage ./generic.nix (
|
|
{
|
|
inherit (darwin.apple_sdk.frameworks)
|
|
AppKit
|
|
AudioToolbox
|
|
AVFoundation
|
|
CoreImage
|
|
VideoToolbox
|
|
;
|
|
}
|
|
// (initArgs // { inherit ffmpegVariant; })
|
|
);
|
|
|
|
v4 = {
|
|
version = "4.4.4";
|
|
hash = "sha256-Q8bkuF/1uJfqttJJoObnnLX3BEduv+qxsvOrVhMvRjA=";
|
|
};
|
|
|
|
v5 = {
|
|
version = "5.1.4";
|
|
hash = "sha256-2jUL1/xGUf7aMooST2DW41KE7bC+BtgChXmj0sAJZ90=";
|
|
};
|
|
|
|
v6 = {
|
|
version = "6.1.1";
|
|
hash = "sha256-Q0c95hbCVUHQWPoh5uC8uzMylmB4BnWg+VhXEgSouzo=";
|
|
};
|
|
|
|
v7 = {
|
|
version = "7.0.1";
|
|
hash = "sha256-HiCT6bvLx4zmJ6ffutoimdz5ENQ55CRF64WBT3HeXMA=";
|
|
};
|
|
in
|
|
|
|
rec {
|
|
ffmpeg_4 = mkFFmpeg v4 "small";
|
|
ffmpeg_4-headless = mkFFmpeg v4 "headless";
|
|
ffmpeg_4-full = mkFFmpeg v4 "full";
|
|
|
|
ffmpeg_5 = mkFFmpeg v5 "small";
|
|
ffmpeg_5-headless = mkFFmpeg v5 "headless";
|
|
ffmpeg_5-full = mkFFmpeg v5 "full";
|
|
|
|
ffmpeg_6 = mkFFmpeg v6 "small";
|
|
ffmpeg_6-headless = mkFFmpeg v6 "headless";
|
|
ffmpeg_6-full = mkFFmpeg v6 "full";
|
|
|
|
ffmpeg_7 = mkFFmpeg v7 "small";
|
|
ffmpeg_7-headless = mkFFmpeg v7 "headless";
|
|
ffmpeg_7-full = mkFFmpeg v7 "full";
|
|
|
|
# Please make sure this is updated to the latest version on the next major
|
|
# update to ffmpeg
|
|
# Packages which use ffmpeg as a library, should pin to the relevant major
|
|
# version number which the upstream support.
|
|
ffmpeg = ffmpeg_6;
|
|
ffmpeg-headless = ffmpeg_6-headless;
|
|
ffmpeg-full = ffmpeg_6-full;
|
|
}
|