opencolorio_1: fix output references

cmake files belong in the dev output, and need to have their
references to binaries appropriately changed to the equivalent
paths in the bin output
This commit is contained in:
Robert Scott
2022-12-31 00:34:02 +00:00
parent 677ed08a50
commit df3673d17b
@@ -33,7 +33,12 @@ stdenv.mkDerivation rec {
++ lib.optional (stdenv.isDarwin && stdenv.isAarch64) "-DCMAKE_OSX_ARCHITECTURES=arm64";
postInstall = ''
mkdir -p $bin/bin; mv $out/bin $bin/
moveToOutput bin "$bin"
moveToOutput cmake "$dev"
moveToOutput OpenColorIOConfig.cmake "$dev"
substituteInPlace "$dev/cmake/OpenColorIO-release.cmake" \
--replace "$out/bin" "$bin/bin"
'';
meta = with lib; {