about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/graphics/exrdisplay/default.nix
blob: 7841e9d571b7439080903e4127bfc0798508c8ee (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
{ stdenv, fetchurl, pkgconfig, fltk, openexr, libGLU, libGL, ctl }:

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

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

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

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

  nativeBuildInputs = [ pkgconfig ];
  buildInputs = [ openexr fltk libGLU libGL 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;
  };
}