From 3aee92f0686a69a1c58b25b6fc88dff8493a445a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Sun, 18 Jul 2010 22:47:23 +0000 Subject: [PATCH] Geeqie: Use libchamplain. svn path=/nixpkgs/trunk/; revision=22650 --- pkgs/applications/graphics/geeqie/default.nix | 16 ++++++++++++++-- pkgs/top-level/all-packages.nix | 2 +- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/graphics/geeqie/default.nix b/pkgs/applications/graphics/geeqie/default.nix index 9ec1b45a4045..076c0360a083 100644 --- a/pkgs/applications/graphics/geeqie/default.nix +++ b/pkgs/applications/graphics/geeqie/default.nix @@ -1,5 +1,5 @@ { stdenv, fetchurl, pkgconfig, gtk, libpng, exiv2, lcms -, intltool, gettext }: +, intltool, gettext, libchamplain }: stdenv.mkDerivation rec { name = "geeqie-1.0"; @@ -9,7 +9,19 @@ stdenv.mkDerivation rec { sha256 = "1p8z47cqdqqkn8b0fr5bqsfinz4dgqk4353s8f8d9ha6cik69bfi"; }; - buildInputs = [ pkgconfig gtk libpng exiv2 lcms intltool gettext ]; + preConfigure = + # XXX: Trick to have Geeqie use the version we have. + '' sed -i "configure" \ + -e 's/champlain-0.4/champlain-0.6/g ; + s/champlain-gtk-0.4/champlain-gtk-0.6/g' + ''; + + configureFlags = [ "--enable-gps" ]; + + buildInputs = + [ pkgconfig gtk libpng exiv2 lcms intltool gettext + libchamplain + ]; meta = { description = "Geeqie, a lightweight GTK+ based image viewer"; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 25bf5c7327b1..b08e04b792ef 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -8131,7 +8131,7 @@ let geeqie = import ../applications/graphics/geeqie { inherit fetchurl stdenv pkgconfig libpng lcms exiv2 - intltool gettext; + intltool gettext libchamplain; inherit (gtkLibs) gtk; };