fontconfig: Use /etc/fonts by default again
This removes the need to set $FONTCONFIG_FILE, which is especially
important when using Nixpkgs binaries on non-NixOS systems.
See also 9301524c50
. This is a
regression caused by a change in fontconfig's configure switches.
This commit is contained in:
parent
16c59ef836
commit
d4561be1cb
@ -20,7 +20,7 @@ stdenv.mkDerivation rec {
|
||||
|
||||
#propagatedBuildInputs = [ expat ]; # !!! shouldn't be necessary, but otherwise pango breaks
|
||||
|
||||
configureFlags = "--with-confdir=/etc/fonts --with-cache-dir=/var/cache/fontconfig --disable-docs --with-default-fonts=";
|
||||
configureFlags = "--sysconfdir=/etc --with-cache-dir=/var/cache/fontconfig --disable-docs --with-default-fonts=";
|
||||
|
||||
# We should find a better way to access the arch reliably.
|
||||
crossArch = stdenv.cross.arch or null;
|
||||
@ -34,7 +34,7 @@ stdenv.mkDerivation rec {
|
||||
enableParallelBuilding = true;
|
||||
|
||||
# Don't try to write to /etc/fonts or /var/cache/fontconfig at install time.
|
||||
installFlags = "CONFDIR=$(out)/etc/fonts RUN_FC_CACHE_TEST=false fc_cachedir=$(TMPDIR)/dummy";
|
||||
installFlags = "sysconfdir=$(out)/etc RUN_FC_CACHE_TEST=false fc_cachedir=$(TMPDIR)/dummy";
|
||||
|
||||
postInstall = if !freetype.infinality.useInfinality then "" else ''
|
||||
cd "$out/etc/fonts" && tar xvf ${infinality_patch}
|
||||
|
@ -9,7 +9,9 @@
|
||||
assert !(useEncumberedCode && useInfinality); # probably wouldn't make sense
|
||||
|
||||
let
|
||||
|
||||
version = "2.4.11";
|
||||
|
||||
infinality = rec {
|
||||
inherit useInfinality;
|
||||
vers = "20130104";
|
||||
@ -21,6 +23,7 @@ let
|
||||
};
|
||||
|
||||
in
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "freetype-${version}";
|
||||
|
||||
@ -38,8 +41,7 @@ stdenv.mkDerivation rec {
|
||||
NIX_CFLAGS_COMPILE = with stdenv.lib;
|
||||
" -fno-strict-aliasing" # from Gentoo, see https://bugzilla.redhat.com/show_bug.cgi?id=506840
|
||||
+ optionalString useEncumberedCode " -DFT_CONFIG_OPTION_SUBPIXEL_RENDERING=1"
|
||||
+ optionalString useInfinality " -DTT_CONFIG_OPTION_SUBPIXEL_HINTING=1"
|
||||
;
|
||||
+ optionalString useInfinality " -DTT_CONFIG_OPTION_SUBPIXEL_HINTING=1";
|
||||
|
||||
patches = [ ./enable-validation.patch ] # from Gentoo
|
||||
++ stdenv.lib.optional useInfinality [ infinality_patch ];
|
||||
@ -51,6 +53,7 @@ stdenv.mkDerivation rec {
|
||||
buildInputs = stdenv.lib.optional (!stdenv.isLinux) gnumake;
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
doCheck = true;
|
||||
|
||||
postInstall =
|
||||
|
Loading…
Reference in New Issue
Block a user