From 1b76cf4b230bab1f7e1be1bbd2b0dcc3d94c9082 Mon Sep 17 00:00:00 2001 From: Julien Dehos Date: Sun, 22 May 2016 22:55:47 +0200 Subject: [PATCH] openexr-viewers: 1.0.1 -> 2.2.0 --- .../graphics/exrdisplay/default.nix | 30 ++++++++++--------- pkgs/top-level/all-packages.nix | 2 +- 2 files changed, 17 insertions(+), 15 deletions(-) diff --git a/pkgs/applications/graphics/exrdisplay/default.nix b/pkgs/applications/graphics/exrdisplay/default.nix index 7b415df42f5b..4aeb7a4a567e 100644 --- a/pkgs/applications/graphics/exrdisplay/default.nix +++ b/pkgs/applications/graphics/exrdisplay/default.nix @@ -1,27 +1,29 @@ -{ stdenv, fetchurl, pkgconfig, fltk, openexr, mesa, which, openexr_ctl }: +{ stdenv, fetchurl, pkgconfig, fltk, openexr, mesa, openexr_ctl }: assert fltk.glSupport; stdenv.mkDerivation { - name ="openexr_viewers-1.0.1"; + name ="openexr_viewers-2.2.0"; src = fetchurl { - url = "mirror://savannah/openexr/openexr_viewers-1.0.1.tar.gz"; - sha256 = "1w5qbcdp7sw48z1wk2v07f7p14vqqb1m2ncxyxnbkm9f4ab0ymg6"; + url = "mirror://savannah/openexr/openexr_viewers-2.2.0.tar.gz"; + sha256 = "1s84vnas12ybx8zz0jcmpfbk9m4ab5bg2d3cglqwk3wys7jf4gzp"; }; - 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 - ''; + configurePhase = '' + ./configure --prefix=$out --with-fltk-config=${fltk}/bin/fltk-config + ''; - buildInputs = [ openexr fltk pkgconfig mesa which openexr_ctl ]; + buildPahse = '' + make LDFLAGS="`fltk-config --ldflags` -lGL -lfltk_gl" + ''; + + buildInputs = [ openexr fltk pkgconfig mesa openexr_ctl ]; meta = { - description = "Tool to view OpenEXR images"; - homepage = http://openexr.com; - license = "BSD-like"; + 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; }; } diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index bc994fb33492..7516021df1f9 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -12477,7 +12477,7 @@ in keepass-keefox = callPackage ../applications/misc/keepass-plugins/keefox { }; exrdisplay = callPackage ../applications/graphics/exrdisplay { - fltk = fltk20; + fltk = fltk13.override { cfg.xftSupport = true; }; }; fbpanel = callPackage ../applications/window-managers/fbpanel { };