···11-{
22- stdenv, lib, fetchurl, copyPathsToStore,
33- pkgconfig, which,
44- zlib, bzip2, libpng, gnumake, glib,
11+{ stdenv, lib, fetchurl, copyPathsToStore
22+, hostPlatform
33+, pkgconfig, which
44+, zlib, bzip2, libpng, gnumake, glib
5566- # FreeType supports LCD filtering (colloquially referred to as sub-pixel rendering).
66+, # FreeType supports LCD filtering (colloquially referred to as sub-pixel rendering).
77 # LCD filtering is also known as ClearType and covered by several Microsoft patents.
88 # This option allows it to be disabled. See http://www.freetype.org/patents.html.
99- useEncumberedCode ? true,
99+ useEncumberedCode ? true
1010}:
11111212let
···67676868 postInstall = glib.flattenInclude;
69697070- crossAttrs = stdenv.lib.optionalAttrs (stdenv.cross.libc or null != "msvcrt") {
7070+ crossAttrs = stdenv.lib.optionalAttrs (hostPlatform.libc or null != "msvcrt") {
7171 # Somehow it calls the unwrapped gcc, "i686-pc-linux-gnu-gcc", instead
7272 # of gcc. I think it's due to the unwrapped gcc being in the PATH. I don't
7373 # know why it's on the PATH.