mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 08:23:09 +00:00
poppler: attempt to fix missing libiconv on non-Linux
This commit is contained in:
parent
efac6d8e73
commit
53fa11cfc9
@ -1,6 +1,6 @@
|
||||
{ fetchurl, stdenv, cairo, freetype, fontconfig, zlib
|
||||
, libjpeg, curl, libpthreadstubs, xorg, openjpeg
|
||||
, libxml2, pkgconfig, cmake, lcms2
|
||||
, libxml2, pkgconfig, cmake, lcms2, libiconvOrEmpty
|
||||
, glibSupport ? false, glib, gtk3Support ? false, gtk3 # gtk2 no longer accepted
|
||||
, qt4Support ? false, qt4 ? null
|
||||
}:
|
||||
@ -23,7 +23,7 @@ stdenv.mkDerivation rec {
|
||||
++ stdenv.lib.optional gtk3Support gtk3
|
||||
++ stdenv.lib.optional qt4Support qt4;
|
||||
|
||||
nativeBuildInputs = [ pkgconfig cmake ];
|
||||
nativeBuildInputs = [ pkgconfig cmake ] ++ libiconvOrEmpty;
|
||||
|
||||
cmakeFlags = "-DENABLE_XPDF_HEADERS=ON -DENABLE_LIBCURL=ON -DENABLE_ZLIB=ON";
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
{ stdenv, fetchurl, fetchgit, pkgconfig, cmake
|
||||
{ stdenv, fetchurl, fetchgit, pkgconfig, cmake, libiconvOrEmpty
|
||||
, zlib, curl, cairo, freetype, fontconfig, lcms2, libjpeg, openjpeg
|
||||
, qt4Support ? false, qt4 ? null
|
||||
}:
|
||||
@ -28,7 +28,7 @@ let
|
||||
|
||||
propagatedBuildInputs = [ zlib cairo freetype fontconfig libjpeg lcms2 curl openjpeg ];
|
||||
|
||||
nativeBuildInputs = [ pkgconfig cmake ];
|
||||
nativeBuildInputs = [ pkgconfig cmake ] ++ libiconvOrEmpty;
|
||||
|
||||
cmakeFlags = "-DENABLE_XPDF_HEADERS=ON -DENABLE_LIBCURL=ON -DENABLE_ZLIB=ON";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user