opencv4: extend the comment about cxxdev

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
This commit is contained in:
Someone 2023-12-25 22:10:11 +00:00 committed by GitHub
parent 7954fc68cb
commit e326909cf3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -474,7 +474,8 @@ effectiveStdenv.mkDerivation {
"$out/lib/pkgconfig/opencv4.pc"
mkdir "$cxxdev"
''
# Temporary fix for https://github.com/NixOS/nixpkgs/issues/276691
# fix deps not progagating from opencv4.cxxdev if cuda is disabled
# see https://github.com/NixOS/nixpkgs/issues/276691
+ lib.optionalString (!enableCuda) ''
mkdir -p "$cxxdev/nix-support"
echo "''${!outputDev}" >> "$cxxdev/nix-support/propagated-build-inputs"