2021-01-19 07:50:56 +01:00
|
|
|
{ lib, stdenv, fetchurl, pkg-config, fltk, openexr, libGLU, libGL, ctl }:
|
2007-12-05 22:25:47 +01:00
|
|
|
|
2021-11-07 21:29:51 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "openexr_viewers";
|
|
|
|
version = "2.2.1";
|
2007-12-05 22:25:47 +01:00
|
|
|
|
2008-01-30 18:20:48 +01:00
|
|
|
src = fetchurl {
|
2021-11-07 21:29:51 +01:00
|
|
|
url = "mirror://savannah/openexr/openexr_viewers-${version}.tar.gz";
|
2018-03-21 07:02:57 +01:00
|
|
|
sha256 = "1ixx2wbjp4rvsf7h3bkja010gl1ihjrcjzy7h20jnn47ikg12vj8";
|
2007-12-05 22:25:47 +01:00
|
|
|
};
|
|
|
|
|
2016-05-22 22:55:47 +02:00
|
|
|
configurePhase = ''
|
|
|
|
./configure --prefix=$out --with-fltk-config=${fltk}/bin/fltk-config
|
|
|
|
'';
|
2007-12-05 22:25:47 +01:00
|
|
|
|
2018-07-11 17:36:39 +02:00
|
|
|
buildPhase = ''
|
2016-05-22 22:55:47 +02:00
|
|
|
make LDFLAGS="`fltk-config --ldflags` -lGL -lfltk_gl"
|
|
|
|
'';
|
|
|
|
|
2021-01-19 07:50:56 +01:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2019-11-10 17:44:34 +01:00
|
|
|
buildInputs = [ openexr fltk libGLU libGL ctl ];
|
2007-12-05 22:25:47 +01:00
|
|
|
|
2018-07-11 17:36:39 +02:00
|
|
|
meta = {
|
2016-05-22 22:55:47 +02:00
|
|
|
description = "Application for viewing OpenEXR images on a display at various exposure settings";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://openexr.com";
|
2021-01-15 14:21:58 +01:00
|
|
|
platforms = lib.platforms.linux;
|
|
|
|
license = lib.licenses.bsd3;
|
2007-12-05 22:25:47 +01:00
|
|
|
};
|
|
|
|
}
|