From df3673d17bebacdbb4dfba3a0554d1047aaf5ed7 Mon Sep 17 00:00:00 2001 From: Robert Scott Date: Fri, 30 Dec 2022 19:36:06 +0000 Subject: 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 --- pkgs/development/libraries/opencolorio/1.x.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'pkgs/development/libraries/opencolorio') diff --git a/pkgs/development/libraries/opencolorio/1.x.nix b/pkgs/development/libraries/opencolorio/1.x.nix index 7622ebbe43e..8f05f962a08 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; { -- cgit 1.4.1