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
|
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
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