summary refs log tree commit diff
path: root/pkgs/applications/graphics/exrdisplay/default.nix
blob: 3386d75e81e19b4625ac7f7b08b232d1881ba709 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{ stdenv, fetchurl, pkgconfig, fltk, openexr, mesa, openexr_ctl }:

assert fltk.glSupport;

stdenv.mkDerivation {
  name ="openexr_viewers-2.2.0";

  src = fetchurl {
    url =  "mirror://savannah/openexr/openexr_viewers-2.2.0.tar.gz";
    sha256 = "1s84vnas12ybx8zz0jcmpfbk9m4ab5bg2d3cglqwk3wys7jf4gzp";
  };

  configurePhase = ''
    ./configure --prefix=$out --with-fltk-config=${fltk}/bin/fltk-config
  '';

  buildPahse = ''
    make LDFLAGS="`fltk-config --ldflags` -lGL -lfltk_gl"
  '';

  nativeBuildInputs = [ pkgconfig ];
  buildInputs = [ openexr fltk mesa openexr_ctl ];

  meta = { 
    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;
  };
}