Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions pkgs/development/libraries/nvidia-optical-flow-sdk/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ lib, stdenv, fetchFromGitHub }:
{ lib, stdenv, fetchFromGitHub, cudaPackages }:

stdenv.mkDerivation {
pname = "nvidia-optical-flow-sdk";
Expand All @@ -18,10 +18,12 @@ stdenv.mkDerivation {
cp -R * $out/include
'';

postFixup = ''
mkdir -p $out/nix-support
echo $pname >> "$out/nix-support/include-in-cudatoolkit-root"
'';
# 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";
Expand Down