mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-24 21:14:52 +00:00
fontconfig: Clean up cross
This commit is contained in:
parent
feb648ce59
commit
7d0906eea8
@ -17,23 +17,13 @@ stdenv.mkDerivation rec {
|
|||||||
buildInputs = [ expat ];
|
buildInputs = [ expat ];
|
||||||
|
|
||||||
configureFlags = [
|
configureFlags = [
|
||||||
|
"--with-arch=${hostPlatform.parsed.cpu.name}"
|
||||||
"--sysconfdir=/etc"
|
"--sysconfdir=/etc"
|
||||||
"--with-cache-dir=/var/cache/fontconfig"
|
"--with-cache-dir=/var/cache/fontconfig"
|
||||||
"--disable-docs"
|
"--disable-docs"
|
||||||
"--with-default-fonts="
|
"--with-default-fonts="
|
||||||
];
|
];
|
||||||
|
|
||||||
# We should find a better way to access the arch reliably.
|
|
||||||
crossArch = if stdenv.hostPlatform != stdenv.buildPlatform
|
|
||||||
then hostPlatform.parsed.cpu.name
|
|
||||||
else null;
|
|
||||||
|
|
||||||
preConfigure = ''
|
|
||||||
if test -n "$crossConfig"; then
|
|
||||||
configureFlags="$configureFlags --with-arch=$crossArch";
|
|
||||||
fi
|
|
||||||
'';
|
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
doCheck = true;
|
doCheck = true;
|
||||||
|
@ -40,23 +40,13 @@ stdenv.mkDerivation rec {
|
|||||||
buildInputs = [ expat ];
|
buildInputs = [ expat ];
|
||||||
|
|
||||||
configureFlags = [
|
configureFlags = [
|
||||||
|
"--with-arch=${hostPlatform.parsed.cpu.name}"
|
||||||
"--with-cache-dir=/var/cache/fontconfig" # otherwise the fallback is in $out/
|
"--with-cache-dir=/var/cache/fontconfig" # otherwise the fallback is in $out/
|
||||||
"--disable-docs"
|
"--disable-docs"
|
||||||
# just <1MB; this is what you get when loading config fails for some reason
|
# just <1MB; this is what you get when loading config fails for some reason
|
||||||
"--with-default-fonts=${dejavu_fonts.minimal}"
|
"--with-default-fonts=${dejavu_fonts.minimal}"
|
||||||
];
|
];
|
||||||
|
|
||||||
# We should find a better way to access the arch reliably.
|
|
||||||
crossArch = if stdenv.hostPlatform != stdenv.buildPlatform
|
|
||||||
then hostPlatform.parsed.cpu.name
|
|
||||||
else null;
|
|
||||||
|
|
||||||
preConfigure = ''
|
|
||||||
if test -n "$crossConfig"; then
|
|
||||||
configureFlags="$configureFlags --with-arch=$crossArch";
|
|
||||||
fi
|
|
||||||
'';
|
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
doCheck = true;
|
doCheck = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user