depot/third_party/nixpkgs/pkgs/development/libraries/nvidia-optical-flow-sdk/default.nix
Default email 841d9c7fc1 Project import generated by Copybara.
GitOrigin-RevId: 3a8d7958a610cd3fec3a6f424480f91a1b259185
2021-06-29 00:13:55 +01:00

27 lines
789 B
Nix

{ lib, stdenv, fetchFromGitHub }:
stdenv.mkDerivation {
pname = "nvidia-optical-flow-sdk";
version = "2.0";
src = fetchFromGitHub {
owner = "NVIDIA";
repo = "NVIDIAOpticalFlowSDK";
rev = "edb50da3cf849840d680249aa6dbef248ebce2ca";
sha256 = "0hv0m0k9wl2wjhhl886j7ymngnf2xz7851nfh57s1gy5bv9lgdgz";
};
# # We only need the header files. The library files are
# # in the nvidia_x11 driver.
installPhase = ''
mkdir -p $out/include
cp -R * $out/include
'';
meta = with lib; {
description = "Nvidia optical flow headers for computing the relative motion of pixels between images";
homepage = "https://developer.nvidia.com/opticalflow-sdk";
license = licenses.bsd3; # applies to the header files only
platforms = platforms.all;
};
}