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

29 lines
796 B
Nix
Raw Permalink Normal View History

{ lib, stdenv, fetchurl, pkg-config, 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";
};
2016-05-22 20:55:47 +00:00
configurePhase = ''
./configure --prefix=$out --with-fltk-config=${fltk}/bin/fltk-config
'';
2018-07-11 15:36:39 +00:00
buildPhase = ''
2016-05-22 20:55:47 +00:00
make LDFLAGS="`fltk-config --ldflags` -lGL -lfltk_gl"
'';
nativeBuildInputs = [ pkg-config ];
2019-11-10 16:44:34 +00:00
buildInputs = [ openexr fltk libGLU libGL ctl ];
2018-07-11 15:36:39 +00:00
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";
2021-01-15 13:21:58 +00:00
platforms = lib.platforms.linux;
license = lib.licenses.bsd3;
};
}