2018-07-17 20:11:16 +00:00
|
|
|
{ stdenv, fetchurl, pkgconfig, fltk, openexr, libGLU_combined, ctl }:
|
2007-12-05 21:25:47 +00:00
|
|
|
|
2010-07-28 18:01:17 +00:00
|
|
|
stdenv.mkDerivation {
|
2018-03-21 06:02:57 +00:00
|
|
|
name ="openexr_viewers-2.2.1";
|
2007-12-05 21:25:47 +00:00
|
|
|
|
2008-01-30 17:20:48 +00:00
|
|
|
src = fetchurl {
|
2018-03-21 06:02:57 +00:00
|
|
|
url = "mirror://savannah/openexr/openexr_viewers-2.2.1.tar.gz";
|
|
|
|
sha256 = "1ixx2wbjp4rvsf7h3bkja010gl1ihjrcjzy7h20jnn47ikg12vj8";
|
2007-12-05 21:25:47 +00:00
|
|
|
};
|
|
|
|
|
2016-05-22 20:55:47 +00:00
|
|
|
configurePhase = ''
|
|
|
|
./configure --prefix=$out --with-fltk-config=${fltk}/bin/fltk-config
|
|
|
|
'';
|
2007-12-05 21:25:47 +00:00
|
|
|
|
2018-07-11 15:36:39 +00:00
|
|
|
buildPhase = ''
|
2016-05-22 20:55:47 +00:00
|
|
|
make LDFLAGS="`fltk-config --ldflags` -lGL -lfltk_gl"
|
|
|
|
'';
|
|
|
|
|
2017-09-05 21:26:13 +00:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2018-07-17 20:11:16 +00:00
|
|
|
buildInputs = [ openexr fltk libGLU_combined ctl ];
|
2007-12-05 21:25:47 +00:00
|
|
|
|
2018-07-11 15:36:39 +00:00
|
|
|
meta = {
|
2016-05-22 20:55:47 +00:00
|
|
|
description = "Application for viewing OpenEXR images on a display at various exposure settings";
|
2017-08-01 20:03:30 +00:00
|
|
|
homepage = http://openexr.com;
|
2016-05-22 20:55:47 +00:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
license = stdenv.lib.licenses.bsd3;
|
2007-12-05 21:25:47 +00:00
|
|
|
};
|
|
|
|
}
|