mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-16 09:54:52 +00:00
4f0dadbf38
After final improvements to the official formatter implementation, this commit now performs the first treewide reformat of Nix files using it. This is part of the implementation of RFC 166. Only "inactive" files are reformatted, meaning only files that aren't being touched by any PR with activity in the past 2 months. This is to avoid conflicts for PRs that might soon be merged. Later we can do a full treewide reformat to get the rest, which should not cause as many conflicts. A CI check has already been running for some time to ensure that new and already-formatted files are formatted, so the files being reformatted here should also stay formatted. This commit was automatically created and can be verified using nix-builda08b3a4d19
.tar.gz \ --argstr baseRevb32a094368
result/bin/apply-formatting $NIXPKGS_PATH
40 lines
1.0 KiB
Nix
40 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
cudaPackages,
|
|
}:
|
|
|
|
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
|
|
'';
|
|
|
|
# Makes setupCudaHook propagate nvidia-optical-flow-sdk together with cuda
|
|
# packages. Currently used by opencv4.cxxdev, hopefully can be removed in the
|
|
# future
|
|
nativeBuildInputs = [
|
|
cudaPackages.markForCudatoolkitRootHook
|
|
];
|
|
|
|
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;
|
|
};
|
|
}
|