2021-01-21 18:00:13 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub }:
|
2020-03-21 05:41:31 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = "nvidia-optical-flow-sdk";
|
2021-06-12 02:04:45 +02:00
|
|
|
version = "2.0";
|
2020-03-21 05:41:31 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "NVIDIA";
|
|
|
|
repo = "NVIDIAOpticalFlowSDK";
|
2021-06-12 02:04:45 +02:00
|
|
|
rev = "edb50da3cf849840d680249aa6dbef248ebce2ca";
|
|
|
|
sha256 = "0hv0m0k9wl2wjhhl886j7ymngnf2xz7851nfh57s1gy5bv9lgdgz";
|
2020-03-21 05:41:31 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
# # We only need the header files. The library files are
|
|
|
|
# # in the nvidia_x11 driver.
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/include
|
|
|
|
cp -R * $out/include
|
|
|
|
'';
|
|
|
|
|
2021-01-21 18:00:13 +01:00
|
|
|
meta = with lib; {
|
2020-03-21 05:41:31 +01:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|