From 0473307f8763c60e88948bed5313affa1aabdfba Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sat, 4 Apr 2020 02:26:55 +0100 Subject: 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 --- third_party/ffmpeg/default.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 third_party/ffmpeg/default.nix (limited to 'third_party/ffmpeg') diff --git a/third_party/ffmpeg/default.nix b/third_party/ffmpeg/default.nix new file mode 100644 index 000000000000..e1b4d759da70 --- /dev/null +++ b/third_party/ffmpeg/default.nix @@ -0,0 +1,12 @@ +{ pkgs, ... }: + +pkgs.originals.ffmpeg.overrideAttrs(old: { + buildInputs = old.buildInputs ++ [ + pkgs.cudatoolkit.out + ]; + + configureFlags = old.configureFlags ++ [ + "--enable-libnpp" + "--enable-nonfree" + ]; +}) -- cgit 1.4.1