2016-01-24 20:14:12 +00:00
|
|
|
{ stdenv, fetchFromGitHub }:
|
2014-11-30 19:36:11 +00:00
|
|
|
|
2016-01-24 20:14:12 +00:00
|
|
|
let version = "2015-12-06"; in
|
2014-11-30 19:36:11 +00:00
|
|
|
stdenv.mkDerivation {
|
2016-01-24 20:14:12 +00:00
|
|
|
name = "fontconfig-ultimate-${version}";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
sha256 = "02a811szxkq4q088nxfpdzp6rv0brvgkdhwigk09qffygxd776g6";
|
|
|
|
rev = version;
|
|
|
|
repo = "fontconfig-ultimate";
|
|
|
|
owner = "bohoomil";
|
2014-11-30 19:36:11 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
phases = "$prePhases unpackPhase installPhase $postPhases";
|
2016-01-24 20:14:12 +00:00
|
|
|
|
2014-11-30 19:36:11 +00:00
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/etc/fonts/conf.d
|
|
|
|
cp conf.d.infinality/*.conf $out/etc/fonts/conf.d
|
|
|
|
|
|
|
|
# Base rendering settings will be determined by NixOS module
|
|
|
|
rm $out/etc/fonts/conf.d/10-base-rendering.conf
|
|
|
|
|
|
|
|
# Options controlled by NixOS module
|
2014-12-15 14:57:30 +00:00
|
|
|
rm $out/etc/fonts/conf.d/35-repl-custom.conf
|
|
|
|
rm $out/etc/fonts/conf.d/38-repl-*.conf
|
2014-11-30 19:36:11 +00:00
|
|
|
rm $out/etc/fonts/conf.d/82-*.conf
|
|
|
|
rm $out/etc/fonts/conf.d/83-*.conf
|
|
|
|
|
|
|
|
# Inclusion of local and user configs handled by global configuration
|
2016-01-24 20:14:12 +00:00
|
|
|
rm $out/etc/fonts/conf.d/29-local.conf
|
|
|
|
rm $out/etc/fonts/conf.d/28-user.conf
|
2014-11-30 19:36:11 +00:00
|
|
|
|
|
|
|
cp fontconfig_patches/fonts-settings/*.conf $out/etc/fonts/conf.d
|
|
|
|
|
|
|
|
mkdir -p $out/etc/fonts/presets/{combi,free,ms}
|
|
|
|
cp fontconfig_patches/combi/*.conf $out/etc/fonts/presets/combi
|
|
|
|
cp fontconfig_patches/free/*.conf $out/etc/fonts/presets/free
|
|
|
|
cp fontconfig_patches/ms/*.conf $out/etc/fonts/presets/ms
|
|
|
|
'';
|
|
|
|
}
|