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:
parent
bcfa11599d
commit
0473307f87
2 changed files with 14 additions and 0 deletions
2
third_party/default.nix
vendored
2
third_party/default.nix
vendored
|
@ -35,6 +35,7 @@ let
|
|||
clang_9
|
||||
cmake
|
||||
coreutils
|
||||
cudatoolkit
|
||||
darwin
|
||||
dockerTools
|
||||
emacs26
|
||||
|
@ -119,6 +120,7 @@ in exposed // {
|
|||
# Packages to be overridden
|
||||
originals = {
|
||||
inherit (nixpkgs) git notmuch;
|
||||
ffmpeg = nixpkgs.ffmpeg-full;
|
||||
};
|
||||
|
||||
# Make NixOS available
|
||||
|
|
12
third_party/ffmpeg/default.nix
vendored
Normal file
12
third_party/ffmpeg/default.nix
vendored
Normal file
|
@ -0,0 +1,12 @@
|
|||
{ pkgs, ... }:
|
||||
|
||||
pkgs.originals.ffmpeg.overrideAttrs(old: {
|
||||
buildInputs = old.buildInputs ++ [
|
||||
pkgs.cudatoolkit.out
|
||||
];
|
||||
|
||||
configureFlags = old.configureFlags ++ [
|
||||
"--enable-libnpp"
|
||||
"--enable-nonfree"
|
||||
];
|
||||
})
|
Loading…
Reference in a new issue