aboutsummaryrefslogtreecommitdiff
path: root/pkgs/development/libraries/nvidia-video-sdk
diff options
context:
space:
mode:
authorLluís Batlle i Rossell <viric@viric.name>2016-06-14 17:50:53 +0200
committerLluís Batlle i Rossell <viric@viric.name>2016-06-14 17:51:55 +0200
commit93912d99d23fa964d4dadcda9a90c8fbe7bb1faa (patch)
tree0907ad26741825551a86472864503ad1f4016886 /pkgs/development/libraries/nvidia-video-sdk
parent186a6a207d4a34180569162f3bdf4ec309c9d00c (diff)
Adding nvenc support to ffmpeg (default off)
I add the nvidia-video-sdk header files, required to make it work. You have to set nvenct=true to ffmpeg-full and nonfreeLicensing=true to ffmpeg-full to use this.
Diffstat (limited to 'pkgs/development/libraries/nvidia-video-sdk')
-rw-r--r--pkgs/development/libraries/nvidia-video-sdk/default.nix27
1 files changed, 27 insertions, 0 deletions
diff --git a/pkgs/development/libraries/nvidia-video-sdk/default.nix b/pkgs/development/libraries/nvidia-video-sdk/default.nix
new file mode 100644
index 000000000000..798f9d3a3965
--- /dev/null
+++ b/pkgs/development/libraries/nvidia-video-sdk/default.nix
@@ -0,0 +1,27 @@
+{ stdenv, fetchurl, unzip }:
+
+stdenv.mkDerivation rec {
+ name = "nvidia-video-sdk-6.0.1";
+
+ src = fetchurl {
+ url = "https://developer.nvidia.com/video-sdk-601";
+ name = "nvidia_video_sdk_6.0.1.zip";
+ sha256 = "08h1vnqsv22js9v3pyim5yb80z87baxb7s2g5gsvvjax07j7w8h5";
+ };
+
+ buildInputs = [ unzip ];
+
+ # We only need the header files. The library files are
+ # in the nvidia_x11 driver.
+ installPhase = ''
+ mkdir -p $out/include
+ cp -R Samples/common/inc/* $out/include
+ '';
+
+ meta = with stdenv.lib; {
+ description = "The NVIDIA Video Codec SDK";
+ homepage = https://developer.nvidia.com/nvidia-video-codec-sdk;
+ license = licenses.unfree;
+ };
+}
+