opencv4: propagate real outputs in cxxdev even without cuda
Hotfix https://github.com/NixOS/nixpkgs/issues/276691
This commit is contained in:
parent
56066347c4
commit
7954fc68cb
@ -472,7 +472,12 @@ effectiveStdenv.mkDerivation {
|
|||||||
postInstall = ''
|
postInstall = ''
|
||||||
sed -i "s|{exec_prefix}/$out|{exec_prefix}|;s|{prefix}/$out|{prefix}|" \
|
sed -i "s|{exec_prefix}/$out|{exec_prefix}|;s|{prefix}/$out|{prefix}|" \
|
||||||
"$out/lib/pkgconfig/opencv4.pc"
|
"$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`
|
# install python distribution information, so other packages can `import opencv`
|
||||||
+ lib.optionalString enablePython ''
|
+ lib.optionalString enablePython ''
|
||||||
|
Loading…
Reference in New Issue
Block a user