2016-05-22 22:55:47 +02:00
|
|
|
{ stdenv, fetchurl, pkgconfig, fltk, openexr, mesa, openexr_ctl }:
|
2007-12-05 22:25:47 +01:00
|
|
|
|
2008-12-20 03:15:26 +01:00
|
|
|
assert fltk.glSupport;
|
2007-12-05 22:25:47 +01:00
|
|
|
|
2010-07-28 20:01:17 +02:00
|
|
|
stdenv.mkDerivation {
|
2016-05-22 22:55:47 +02:00
|
|
|
name ="openexr_viewers-2.2.0";
|
2007-12-05 22:25:47 +01:00
|
|
|
|
2008-01-30 18:20:48 +01:00
|
|
|
src = fetchurl {
|
2016-05-22 22:55:47 +02:00
|
|
|
url = "mirror://savannah/openexr/openexr_viewers-2.2.0.tar.gz";
|
|
|
|
sha256 = "1s84vnas12ybx8zz0jcmpfbk9m4ab5bg2d3cglqwk3wys7jf4gzp";
|
2007-12-05 22:25:47 +01:00
|
|
|
};
|
|
|
|
|
2016-05-22 22:55:47 +02:00
|
|
|
configurePhase = ''
|
|
|
|
./configure --prefix=$out --with-fltk-config=${fltk}/bin/fltk-config
|
|
|
|
'';
|
2007-12-05 22:25:47 +01:00
|
|
|
|
2016-05-22 22:55:47 +02:00
|
|
|
buildPahse = ''
|
|
|
|
make LDFLAGS="`fltk-config --ldflags` -lGL -lfltk_gl"
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildInputs = [ openexr fltk pkgconfig mesa openexr_ctl ];
|
2007-12-05 22:25:47 +01:00
|
|
|
|
|
|
|
meta = {
|
2016-05-22 22:55:47 +02:00
|
|
|
description = "Application for viewing OpenEXR images on a display at various exposure settings";
|
|
|
|
homepage = "http://openexr.com";
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
license = stdenv.lib.licenses.bsd3;
|
2007-12-05 22:25:47 +01:00
|
|
|
};
|
|
|
|
}
|