@@ -1,27 +1,29 @@
1−{ stdenv, fetchurl, pkgconfig, fltk, openexr, mesa, which, openexr_ctl }:
1+{ stdenv, fetchurl, pkgconfig, fltk, openexr, mesa, openexr_ctl }:
22
33assert fltk.glSupport;
44
55stdenv.mkDerivation {
6− name ="openexr_viewers-1.0.1";
6+ name ="openexr_viewers-2.2.0";
77
88 src = fetchurl {
9− url = "mirror://savannah/openexr/openexr_viewers-1.0.1.tar.gz";
10− sha256 = "1w5qbcdp7sw48z1wk2v07f7p14vqqb1m2ncxyxnbkm9f4ab0ymg6";
9+ url = "mirror://savannah/openexr/openexr_viewers-2.2.0.tar.gz";
10+ sha256 = "1s84vnas12ybx8zz0jcmpfbk9m4ab5bg2d3cglqwk3wys7jf4gzp";
1111 };
1212
13− configurePhase =
14− ''
15− # don't know why.. adding these flags it works
16− #export CXXFLAGS=`fltk-config --use-gl --cxxflags --ldflags`
17− ./configure --prefix=$out --with-fltk-config=${fltk}/bin/fltk-config
18− '';
13+ configurePhase = ''
14+ ./configure --prefix=$out --with-fltk-config=${fltk}/bin/fltk-config
15+ '';
1916
20− buildInputs = [ openexr fltk pkgconfig mesa which openexr_ctl ];
17+ buildPahse = ''
18+ make LDFLAGS="`fltk-config --ldflags` -lGL -lfltk_gl"
19+ '';
20+
21+ buildInputs = [ openexr fltk pkgconfig mesa openexr_ctl ];
2122
2223 meta = {
23− description = "Tool to view OpenEXR images";
24− homepage = http://openexr.com;
25− license = "BSD-like";
24+ description = "Application for viewing OpenEXR images on a display at various exposure settings";
25+ homepage = "http://openexr.com";
26+ platforms = stdenv.lib.platforms.linux;
27+ license = stdenv.lib.licenses.bsd3;
2628 };
2729}