Skip to content

Commit

Permalink
opencv4: propagate real outputs in cxxdev even without cuda
Browse files Browse the repository at this point in the history
Hotfix #276691
  • Loading branch information
SomeoneSerge committed Dec 25, 2023
1 parent 5606634 commit 7954fc6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pkgs/development/libraries/opencv/4.x.nix
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,12 @@ effectiveStdenv.mkDerivation {
postInstall = ''
sed -i "s|{exec_prefix}/$out|{exec_prefix}|;s|{prefix}/$out|{prefix}|" \
"$out/lib/pkgconfig/opencv4.pc"
mkdir $cxxdev
mkdir "$cxxdev"
''
# Temporary fix for https://github.com/NixOS/nixpkgs/issues/276691
+ lib.optionalString (!enableCuda) ''
mkdir -p "$cxxdev/nix-support"
echo "''${!outputDev}" >> "$cxxdev/nix-support/propagated-build-inputs"
''
# install python distribution information, so other packages can `import opencv`
+ lib.optionalString enablePython ''
Expand Down

0 comments on commit 7954fc6

Please sign in to comment.