2007-10-12 22:33:03 +02:00
|
|
|
args: with args;
|
2005-11-12 23:04:57 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2007-12-08 16:21:03 +01:00
|
|
|
inherit version;
|
|
|
|
name = "openexr-${version}";
|
2005-11-12 23:04:57 +01:00
|
|
|
src = fetchurl {
|
2007-12-08 16:21:03 +01:00
|
|
|
url = "http://download.savannah.nongnu.org/releases/openexr/openexr-${version}.tar.gz";
|
|
|
|
sha256 = if (version == "1.6.1") then "0l2rdbx9lg4qk2ms98hwbsnzpggdrx3pbjl6pcvrrpjqp5m905n6"
|
|
|
|
else if (version == "1.4.0") then "1y3dxakpg9651dgbj2xp6r4044b5gi74g23w3sr5cs6xi7cywv7m"
|
|
|
|
else abort "not supported version";
|
2005-11-12 23:04:57 +01:00
|
|
|
};
|
2007-12-08 16:21:03 +01:00
|
|
|
buildInputs = [pkgconfig zlib] ++ (lib.optional (args ? ctl) (args.ctl));
|
2007-10-12 22:33:03 +02:00
|
|
|
propagatedBuildInputs = [pkgconfig zlib ilmbase];
|
|
|
|
configureFlags = "--enable-shared --disable-static --enable-imfexamples";
|
2005-11-12 23:04:57 +01:00
|
|
|
}
|