summary refs log tree commit diff
path: root/pkgs/development/libraries/opencolorio/default.nix
blob: 3b0e60fca3955f263e0c999912f120b7d781f831 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{ stdenv, lib, fetchurl, cmake, unzip, boost }:

stdenv.mkDerivation rec {
  name = "opencolorio-${version}";
  version = "1.0.9";

  src = fetchurl {
    url = "https://github.com/imageworks/OpenColorIO/archive/v1.0.9.zip";
    sha256 = "14j80dgbb6f09z63aqh2874vhzpga6zksz8jmqnj1zh87x15pqnr";
  };

  outputs = [ "bin" "out" "dev" ];

  buildInputs = [ cmake unzip ] ++ lib.optional stdenv.isDarwin boost;

  cmakeFlags = lib.optional stdenv.isDarwin "-DOCIO_USE_BOOST_PTR=ON";

  postInstall = ''
    rm $out/lib/*.a
    mkdir -p $bin/bin; mv $out/bin $bin/
  '';

  meta = with stdenv.lib; {
    homepage = http://opencolorio.org;
    description = "A color management framework for visual effects and animation";
    license = licenses.bsd3;
    maintainers = [ maintainers.goibhniu ];
    platforms = platforms.unix;
  };
}