1 { stdenv, lib, fetchFromGitHub, cmake, boost, pkg-config, lcms2, tinyxml, git }:
5 stdenv.mkDerivation rec {
9 src = fetchFromGitHub {
13 sha256 = "12srvxca51czpfjl0gabpidj9n84mw78ivxy5w75qhq2mmc798sb";
16 outputs = [ "bin" "out" "dev" ];
18 # TODO: Investigate whether git can be dropped: It's only used to apply patches
19 nativeBuildInputs = [ cmake pkg-config git ];
21 buildInputs = [ lcms2 tinyxml ] ++ optional stdenv.isDarwin boost;
24 substituteInPlace src/core/CMakeLists.txt --replace "-Werror" ""
25 substituteInPlace src/pyglue/CMakeLists.txt --replace "-Werror" ""
29 "-DUSE_EXTERNAL_LCMS=ON"
30 "-DUSE_EXTERNAL_TINYXML=ON"
31 # External libyamlcpp 0.6.* not compatible: https://github.com/imageworks/OpenColorIO/issues/517
32 "-DUSE_EXTERNAL_YAML=OFF"
33 ] ++ optional stdenv.isDarwin "-DOCIO_USE_BOOST_PTR=ON"
34 ++ optional (!stdenv.hostPlatform.isi686 && !stdenv.hostPlatform.isx86_64) "-DOCIO_USE_SSE=OFF";
37 mkdir -p $bin/bin; mv $out/bin $bin/
41 homepage = "https://opencolorio.org";
42 description = "A color management framework for visual effects and animation";
43 license = licenses.bsd3;
44 maintainers = [ maintainers.goibhniu ];
45 platforms = platforms.unix;