summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Scott <code@humanleg.org.uk>2022-12-30 19:36:06 +0000
committergithub-actions[bot] <github-actions[bot]@users.noreply.github.com>2023-01-07 17:42:53 +0000
commitd13876e0eabee5dfbc60ed11b0fd3708e9535387 (patch)
treedf519ea8c12c62abc4bfa9ba42c0e22e0de8ae0d
parent9f11a2df77cb945c115ae2a65f53f38121597d73 (diff)
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 (cherry picked from commit df3673d17bebacdbb4dfba3a0554d1047aaf5ed7)
-rw-r--r--pkgs/development/libraries/opencolorio/1.x.nix7
1 files changed, 6 insertions, 1 deletions
diff --git a/pkgs/development/libraries/opencolorio/1.x.nix b/pkgs/development/libraries/opencolorio/1.x.nix
index 7622ebbe43eb..8f05f962a08e 100644
--- a/pkgs/development/libraries/opencolorio/1.x.nix
+++ b/pkgs/development/libraries/opencolorio/1.x.nix
@@ -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; {