13 stdenv.mkDerivation rec {
14 pname = "opencolorio";
17 src = fetchFromGitHub {
21 sha256 = "12srvxca51czpfjl0gabpidj9n84mw78ivxy5w75qhq2mmc798sb";
30 # TODO: Investigate whether git can be dropped: It's only used to apply patches
40 ] ++ lib.optional stdenv.hostPlatform.isDarwin boost;
43 substituteInPlace src/core/CMakeLists.txt --replace "-Werror" ""
44 substituteInPlace src/pyglue/CMakeLists.txt --replace "-Werror" ""
49 "-DUSE_EXTERNAL_LCMS=ON"
50 "-DUSE_EXTERNAL_TINYXML=ON"
51 # External yaml-cpp 0.6.* not compatible: https://github.com/imageworks/OpenColorIO/issues/517
52 "-DUSE_EXTERNAL_YAML=OFF"
54 ++ lib.optional stdenv.hostPlatform.isDarwin "-DOCIO_USE_BOOST_PTR=ON"
55 ++ lib.optional (!stdenv.hostPlatform.isx86) "-DOCIO_USE_SSE=OFF"
57 stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64
58 ) "-DCMAKE_OSX_ARCHITECTURES=arm64";
61 moveToOutput bin "$bin"
62 moveToOutput cmake "$dev"
63 mv $out/OpenColorIOConfig.cmake $dev/cmake/
65 substituteInPlace "$dev/cmake/OpenColorIO-release.cmake" \
66 --replace "$out/bin" "$bin/bin"
70 homepage = "https://opencolorio.org";
71 description = "Color management framework for visual effects and animation";
72 license = licenses.bsd3;
74 platforms = platforms.unix;