freetype: major update, including some CVE security
- There's no fontconfig update yet, as I failed to debug it yet. - Infinality patches are now taken from a different (maintained) source.
This commit is contained in:
@@ -8,18 +8,22 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "0llraqw86jmw4vzv7inskp3xxm2gc64my08iwq5mzncgfdbfza4f";
|
||||
};
|
||||
|
||||
infinality_patch = with freetype.infinality; if useInfinality
|
||||
then let subvers = "1";
|
||||
infinality_patch =
|
||||
let subvers = "1";
|
||||
in fetchurl {
|
||||
url = http://www.infinality.net/fedora/linux/zips/fontconfig-infinality-1-20130104_1.tar.bz2;
|
||||
sha256 = "1fm5xx0mx2243jrq5rxk4v0ajw2nawpj23399h710bx6hd1rviq7";
|
||||
}
|
||||
else null;
|
||||
;
|
||||
|
||||
propagatedBuildInputs = [ freetype ];
|
||||
buildInputs = [ pkgconfig expat ];
|
||||
|
||||
configureFlags = "--sysconfdir=/etc --with-cache-dir=/var/cache/fontconfig --disable-docs --with-default-fonts=";
|
||||
configureFlags = [
|
||||
"--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;
|
||||
@@ -32,10 +36,12 @@ stdenv.mkDerivation rec {
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
# Don't try to write to /etc/fonts or /var/cache/fontconfig at install time.
|
||||
installFlags = "sysconfdir=$(out)/etc RUN_FC_CACHE_TEST=false fc_cachedir=$(TMPDIR)/dummy";
|
||||
doCheck = true;
|
||||
|
||||
postInstall = stdenv.lib.optionalString freetype.infinality.useInfinality ''
|
||||
# Don't try to write to /var/cache/fontconfig at install time.
|
||||
installFlags = "fc_cachedir=$(TMPDIR)/dummy";
|
||||
|
||||
postInstall = ''
|
||||
cd "$out/etc/fonts" && tar xvf ${infinality_patch}
|
||||
'';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user