Update and fix DejaVu fonts
svn path=/nixpkgs/branches/glib-2.30-take2/; revision=33370
This commit is contained in:
parent
5087016ee1
commit
318c747520
@ -1,14 +1,24 @@
|
|||||||
{fetchurl, stdenv, fontforge, perl, fontconfig, FontTTF}:
|
{fetchurl, stdenv, fontforge, perl, fontconfig, FontTTF}:
|
||||||
|
|
||||||
let version = "2.29" ; in
|
let version = "2.33" ; in
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation rec {
|
||||||
name = "dejavu-fonts-${version}";
|
name = "dejavu-fonts-${version}";
|
||||||
#fontconfig is needed only for fc-lang (?)
|
#fontconfig is needed only for fc-lang (?)
|
||||||
buildInputs = [fontforge perl FontTTF];
|
buildInputs = [fontforge perl FontTTF];
|
||||||
|
|
||||||
|
unicodeData = fetchurl {
|
||||||
|
url = http://www.unicode.org/Public/6.1.0/ucd/UnicodeData.txt ;
|
||||||
|
sha256 = "1bd6zkzvxfnifrn5nh171ywk7q56sgk8gdvdn43z9i53hljjcrih";
|
||||||
|
};
|
||||||
|
blocks = fetchurl {
|
||||||
|
url = http://www.unicode.org/Public/6.1.0/ucd/Blocks.txt;
|
||||||
|
sha256 = "0w0vkb09nrlc6mrhqyl9npszdi828afgvhvlb1vs5smjv3h8y3dz";
|
||||||
|
};
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://sourceforge/dejavu/dejavu-fonts-${version}.tar.bz2";
|
url = "mirror://sourceforge/dejavu/dejavu-fonts-${version}.tar.bz2";
|
||||||
sha256 = "1h8x0bnbh9awwsxiwjpp73iczk1y4d5y0as1f4zb4pbk6l2m7v60";
|
sha256 = "10m0rds36yyaznfqaa9msayv6f0v1h50zbikja6qdy5dwwxi8q5w";
|
||||||
};
|
};
|
||||||
preBuild = ''
|
preBuild = ''
|
||||||
sed -e s@/usr/bin/env@$(type -tP env)@ -i scripts/*
|
sed -e s@/usr/bin/env@$(type -tP env)@ -i scripts/*
|
||||||
@ -16,7 +26,8 @@ stdenv.mkDerivation {
|
|||||||
mkdir resources
|
mkdir resources
|
||||||
tar xf ${fontconfig.src} --wildcards '*/fc-lang'
|
tar xf ${fontconfig.src} --wildcards '*/fc-lang'
|
||||||
ln -s $PWD/fontconfig-*/fc-lang -t resources/
|
ln -s $PWD/fontconfig-*/fc-lang -t resources/
|
||||||
ln -s ${perl}/lib/*/*/unicore/* -t resources/
|
ln -s ${unicodeData} resources/UnicodeData.txt
|
||||||
|
ln -s ${blocks} resources/Blocks.txt
|
||||||
'';
|
'';
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p $out/share/fonts/truetype
|
mkdir -p $out/share/fonts/truetype
|
||||||
|
Loading…
Reference in New Issue
Block a user