mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-27 05:43:50 +03:00
Merge #18278: fontconfig: fix dependencies on OSX
This commit is contained in:
commit
b4f9618b31
@ -47,6 +47,6 @@ stdenv.mkDerivation rec {
|
||||
# See http://dejavu-fonts.org/wiki/License for details
|
||||
license = stdenv.lib.licenses.free;
|
||||
|
||||
platforms = stdenv.lib.platforms.linux;
|
||||
platforms = stdenv.lib.platforms.unix;
|
||||
};
|
||||
}
|
||||
|
@ -31,11 +31,12 @@ stdenv.mkDerivation rec {
|
||||
python freetype zlib glib libungif libpng libjpeg libtiff libxml2
|
||||
]
|
||||
++ lib.optionals withGTK [ gtk2 pango ]
|
||||
++ lib.optionals (withGTK && stdenv.isDarwin) [ Carbon Cocoa ];
|
||||
++ lib.optionals stdenv.isDarwin [ Carbon Cocoa ];
|
||||
|
||||
configureFlags =
|
||||
lib.optionals (!withPython) [ "--disable-python-scripting" "--disable-python-extension" ]
|
||||
++ lib.optional withGTK "--enable-gtk2-use";
|
||||
++ lib.optional withGTK "--enable-gtk2-use"
|
||||
++ lib.optional (!withGTK) "--without-x";
|
||||
|
||||
preConfigure = ''
|
||||
cp -r "${gnulib}" ./gnulib
|
||||
|
@ -1625,7 +1625,9 @@ in
|
||||
|
||||
flvtool2 = callPackage ../tools/video/flvtool2 { };
|
||||
|
||||
fontforge = lowPrio (callPackage ../tools/misc/fontforge { });
|
||||
fontforge = lowPrio (callPackage ../tools/misc/fontforge {
|
||||
inherit (darwin.apple_sdk.frameworks) Carbon Cocoa;
|
||||
});
|
||||
fontforge-gtk = callPackage ../tools/misc/fontforge {
|
||||
withGTK = true;
|
||||
inherit (darwin.apple_sdk.frameworks) Carbon Cocoa;
|
||||
|
Loading…
Reference in New Issue
Block a user