nixpkgs/pkgs/applications/graphics/exrdisplay/default.nix

31 lines
825 B
Nix
Raw Normal View History

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