about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/nvidia-video-sdk/default.nix
blob: ab674833ebfcb2db5c78e118af93ccbfff9d01fc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{ lib, stdenv, fetchurl, unzip }:

stdenv.mkDerivation rec {
  pname = "nvidia-video-sdk";
  version = "6.0.1";

  src = fetchurl {
    url = "https://developer.nvidia.com/video-sdk-601";
    name = "nvidia_video_sdk_${version}.zip";
    sha256 = "08h1vnqsv22js9v3pyim5yb80z87baxb7s2g5gsvvjax07j7w8h5";
  };

  nativeBuildInputs = [ 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 lib; {
    description = "The NVIDIA Video Codec SDK";
    homepage = "https://developer.nvidia.com/nvidia-video-codec-sdk";
    license = licenses.unfree;
  };
}