9365291276
problem/fix described here: http://comments.gmane.org/gmane.comp.fonts.dejavu/3608 svn path=/nixpkgs/trunk/; revision=33227
32 lines
981 B
Nix
32 lines
981 B
Nix
{fetchurl, stdenv, fontforge, perl, fontconfig, FontTTF}:
|
|
|
|
let version = "2.29" ; in
|
|
|
|
stdenv.mkDerivation {
|
|
name = "dejavu-fonts-${version}";
|
|
#fontconfig is needed only for fc-lang (?)
|
|
buildInputs = [fontforge perl FontTTF];
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/dejavu/dejavu-fonts-${version}.tar.bz2";
|
|
sha256 = "1h8x0bnbh9awwsxiwjpp73iczk1y4d5y0as1f4zb4pbk6l2m7v60";
|
|
};
|
|
buildFlags = "full-ttf";
|
|
preBuild = ''
|
|
sed -e s@/usr/bin/env@$(type -tP env)@ -i scripts/*
|
|
sed -e s@/usr/bin/perl@$(type -tP perl)@ -i scripts/*
|
|
mkdir resources
|
|
tar xf ${fontconfig.src} --wildcards '*/fc-lang'
|
|
ln -s $PWD/fontconfig-*/fc-lang -t resources/
|
|
ln -s ${perl}/lib/*/*/unicore/* -t resources/
|
|
'';
|
|
installPhase = ''
|
|
mkdir -p $out/share/fonts/truetype
|
|
for i in $(find build -name '*.ttf'); do
|
|
cp $i $out/share/fonts/truetype;
|
|
done;
|
|
mkdir -p $out/share/dejavu-fonts
|
|
cp -r build/* $out/share/dejavu-fonts
|
|
'';
|
|
}
|
|
|