Repository navigation
ffmpeg: make version a regular parameter and use callPackage pattern #295691
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
8832956
ffmpeg: move extraPatches to generic drv
Atemu ec34e3d
ffmpeg: make version a regular parameter and use callPackage pattern
Atemu b72fefd
ffmpeg: remove finalAttrs.version usage
Atemu bb22f33
jellyfin-ffmpeg: use ffmpeg's new override interface
Atemu File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,58 @@ | ||
| { callPackage, darwin }: | ||
|
|
||
| let | ||
| mkFFmpeg = | ||
| initArgs: ffmpegVariant: | ||
| callPackage ./generic.nix ( | ||
| { | ||
| inherit (darwin.apple_sdk.frameworks) | ||
| Cocoa | ||
| CoreServices | ||
| CoreAudio | ||
| CoreMedia | ||
| AVFoundation | ||
| MediaToolbox | ||
| VideoDecodeAcceleration | ||
| 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="; | ||
| }; | ||
| 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"; | ||
|
|
||
| # 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; | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.