feat(third_party/ffmpeg): Add "libnpp" support to ffmpeg

Builds ffmpeg with CUDA Toolkit as a dependency, which includes a
library called "libnpp" that provides something related to hardware
accelerated video stream resizing.

v0v
This commit is contained in:
Vincent Ambo 2020-04-04 02:26:55 +01:00
parent bcfa11599d
commit 0473307f87
2 changed files with 14 additions and 0 deletions

View file

@ -35,6 +35,7 @@ let
clang_9 clang_9
cmake cmake
coreutils coreutils
cudatoolkit
darwin darwin
dockerTools dockerTools
emacs26 emacs26
@ -119,6 +120,7 @@ in exposed // {
# Packages to be overridden # Packages to be overridden
originals = { originals = {
inherit (nixpkgs) git notmuch; inherit (nixpkgs) git notmuch;
ffmpeg = nixpkgs.ffmpeg-full;
}; };
# Make NixOS available # Make NixOS available

12
third_party/ffmpeg/default.nix vendored Normal file
View file

@ -0,0 +1,12 @@
{ pkgs, ... }:
pkgs.originals.ffmpeg.overrideAttrs(old: {
buildInputs = old.buildInputs ++ [
pkgs.cudatoolkit.out
];
configureFlags = old.configureFlags ++ [
"--enable-libnpp"
"--enable-nonfree"
];
})