diff options
author | Yury G. Kudryashov <urkud.urkud@gmail.com> | 2010-04-10 20:26:54 +0000 |
---|---|---|
committer | Yury G. Kudryashov <urkud.urkud@gmail.com> | 2010-04-10 20:26:54 +0000 |
commit | 22bc695075c8b3bc47d42548a81e58b466b4dc3d (patch) | |
tree | 151b132907847a8b8c957a3d6430d4928a7d4912 /pkgs/applications/misc/djvulibre/default.nix | |
parent | 9cef0c7941dbb7f6cb1dd546fd93bd1b185958e8 (diff) |
Use package overrides instead of getConfig
svn path=/nixpkgs/trunk/; revision=21002
Diffstat (limited to 'pkgs/applications/misc/djvulibre/default.nix')
-rw-r--r-- | pkgs/applications/misc/djvulibre/default.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/applications/misc/djvulibre/default.nix b/pkgs/applications/misc/djvulibre/default.nix index e40accf8b4475..0b052b094e260 100644 --- a/pkgs/applications/misc/djvulibre/default.nix +++ b/pkgs/applications/misc/djvulibre/default.nix @@ -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"; |