summary refs log tree commit diff
path: root/pkgs/applications/graphics/exrdisplay/default.nix
blob: 7b415df42f5b2368f0c012b35706f65736ab6661 (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
{ stdenv, fetchurl, pkgconfig, fltk, openexr, mesa, which, openexr_ctl }:

assert fltk.glSupport;

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

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

  configurePhase =
    ''
      # don't know why.. adding these flags it works
      #export CXXFLAGS=`fltk-config --use-gl --cxxflags --ldflags`
      ./configure --prefix=$out --with-fltk-config=${fltk}/bin/fltk-config
    '';

  buildInputs = [ openexr fltk pkgconfig mesa which openexr_ctl ];

  meta = { 
    description = "Tool to view OpenEXR images";
    homepage = http://openexr.com;
    license = "BSD-like";
  };
}