Use package overrides instead of getConfig

svn path=/nixpkgs/trunk/; revision=21002
This commit is contained in:
Yury G. Kudryashov 2010-04-10 20:26:54 +00:00
parent 9cef0c7941
commit 22bc695075
2 changed files with 3 additions and 4 deletions

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, lib, config, libjpeg, libtiff, libpng, ghostscript
{ stdenv, fetchurl, lib, useQt3 ? true, libjpeg, libtiff, libpng, ghostscript
, libungif, zlib, x11, libX11, mesa, qt3 }:
stdenv.mkDerivation {
@ -10,7 +10,7 @@ stdenv.mkDerivation {
};
buildInputs = [ libjpeg libtiff libpng ghostscript zlib libungif ] ++
(if config "qt3" true then [qt3 libX11 x11 mesa] else []);
stdenv.lib.optionals useQt3 [qt3 libX11 x11 mesa];
meta = {
description = "A library and viewer for the DJVU file format for scanned images";

View file

@ -7045,10 +7045,9 @@ let
inherit (gtkLibs) gtk glib;
};
djvulibre = import ../applications/misc/djvulibre {
djvulibre = makeOverridable (import ../applications/misc/djvulibre) {
inherit stdenv fetchurl lib libjpeg libtiff libungif qt3 zlib
ghostscript libpng mesa x11;
config = getPkgConfig "djvulibre";
inherit (xlibs) libX11;
};