forked from mirrors/nixpkgs
Bunch of Unicode fonts.
svn path=/nixpkgs/trunk/; revision=10909
This commit is contained in:
parent
26d4ecd5ad
commit
7ffdd3a997
30
pkgs/data/fonts/clearlyU/1.9.nix
Normal file
30
pkgs/data/fonts/clearlyU/1.9.nix
Normal file
|
@ -0,0 +1,30 @@
|
|||
args : with args; with builderDefs {src="";} null;
|
||||
let localDefs = builderDefs (rec {
|
||||
src = /* put a fetchurl here */
|
||||
fetchurl {
|
||||
url = http://crl.nmsu.edu/~mleisher/cu/cu12-1.9.tar.gz;
|
||||
sha256 = "0256h6f3ky529jc39hh0nvkngy48a0x3gss2z81g5ddi1qzfw0pn";
|
||||
};
|
||||
buildInputs = [mkfontdir mkfontscale];
|
||||
configureFlags = [];
|
||||
doInstall = FullDepEntry (''
|
||||
tar xf ${src}
|
||||
ensureDir $out/share/fonts/
|
||||
cp *.bdf $out/share/fonts
|
||||
cd $out/share/fonts
|
||||
mkfontdir
|
||||
mkfontscale
|
||||
'') ["minInit" "defEnsureDir" "addInputs"];
|
||||
}) null; /* null is a terminator for sumArgs */
|
||||
in with localDefs;
|
||||
stdenv.mkDerivation rec {
|
||||
name = "clearlyU-12-"+version;
|
||||
builder = writeScript (name + "-builder")
|
||||
(textClosure localDefs
|
||||
[doInstall doForceShare doPropagate]);
|
||||
meta = {
|
||||
description = "
|
||||
A Unicode font.
|
||||
";
|
||||
};
|
||||
}
|
28
pkgs/data/fonts/dejavu-fonts/default.nix
Normal file
28
pkgs/data/fonts/dejavu-fonts/default.nix
Normal file
|
@ -0,0 +1,28 @@
|
|||
args: with args;
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "dejavu-fonts-2.23";
|
||||
#fontconfig is needed only for fc-lang (?)
|
||||
buildInputs = [fontforge perl perlFontTTF];
|
||||
src = fetchurl {
|
||||
url = mirror://sourceforge/dejavu/dejavu-fonts-2.23.tar.bz2;
|
||||
sha256 = "0gifaxiianls54i05yw5gxhi2a0j9jmy5p0q58ym4l9fxv5drnhn";
|
||||
};
|
||||
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 resources/
|
||||
ln -s ${perl}/lib/*/unicore/* resources/
|
||||
'';
|
||||
installPhase = ''
|
||||
ensureDir $out/share/fonts/truetype
|
||||
for i in $(find build -name '*.ttf'); do
|
||||
cp $i $out/share/fonts/truetype;
|
||||
done;
|
||||
ensureDir $out/share/dejavu-fonts
|
||||
cp -r build/* $out/share/dejavu-fonts
|
||||
'';
|
||||
}
|
||||
|
17
pkgs/data/fonts/mph-2b-damase/default.nix
Normal file
17
pkgs/data/fonts/mph-2b-damase/default.nix
Normal file
|
@ -0,0 +1,17 @@
|
|||
{stdenv, fetchurl, unzip}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "MPH-2B-Damase";
|
||||
src = fetchurl {
|
||||
url = http://www.wazu.jp/downloads/damase_v.2.zip;
|
||||
sha256 = "0y7rakbysjjrzcc5y100hkn64j7js434x20pyi6rllnw2w2n1y1h";
|
||||
};
|
||||
buildInputs = [unzip];
|
||||
unpackPhase = ''
|
||||
unzip $src;
|
||||
'';
|
||||
installPhase = ''
|
||||
ensureDir $out/share/fonts/truetype
|
||||
cp *.ttf $out/share/fonts/truetype
|
||||
'';
|
||||
}
|
14
pkgs/data/fonts/redhat-liberation-fonts/default.nix
Normal file
14
pkgs/data/fonts/redhat-liberation-fonts/default.nix
Normal file
|
@ -0,0 +1,14 @@
|
|||
{stdenv, fetchurl}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "freefont-ttf-20060126";
|
||||
src = fetchurl {
|
||||
url = http://www.redhat.com/f/fonts/liberation-fonts-ttf-3.tar.gz;
|
||||
sha256 = "13zzyqyi3mf676aj3fg9122asyykpx94mk689r1p2ab1axyg4k0p";
|
||||
};
|
||||
installPhase = ''
|
||||
ensureDir $out/share/fonts/truetype
|
||||
cp *.ttf $out/share/fonts/truetype
|
||||
'';
|
||||
}
|
||||
|
26
pkgs/data/fonts/unifont/default.nix
Normal file
26
pkgs/data/fonts/unifont/default.nix
Normal file
|
@ -0,0 +1,26 @@
|
|||
args: with args; with debPackage;
|
||||
debBuild ({
|
||||
src = fetchurl {
|
||||
url = mirror://debian/main/u/unifont/unifont_1.0.orig.tar.gz;
|
||||
sha256 = "0bg8d6c7w51n5409g0n7vqk3aagbzb5aird5r02vw0yz7w6i729l";
|
||||
};
|
||||
patch = fetchurl {
|
||||
url = mirror://debian/main/u/unifont/unifont_1.0-4.diff.gz;
|
||||
sha256 = "08j0rrf7hc05izchmsx9f9hg7vnyqdvbmba4b9jl8wfhvd1b09fd";
|
||||
};
|
||||
name = "unifont-1.0-4";
|
||||
buildInputs = [mkfontscale mkfontdir bdftopcf fontutil perl];
|
||||
meta = {
|
||||
description = "Unicode font for Base Multilingual Plane.";
|
||||
};
|
||||
extraReplacements = ''sed -e s@/usr/bin/perl@${perl}/bin/perl@ -i hex2bdf.unsplit'';
|
||||
omitConfigure = true;
|
||||
Install = ''
|
||||
ensureDir $out/share/fonts
|
||||
cp unifont.pcf $out/share/fonts
|
||||
cd $out/share/fonts
|
||||
mkfontdir
|
||||
mkfontscale
|
||||
'';
|
||||
extraInstallDeps = ["defEnsureDir"];
|
||||
} // args)
|
28
pkgs/data/fonts/wqy_zenhei/0.4.23-1.nix
Normal file
28
pkgs/data/fonts/wqy_zenhei/0.4.23-1.nix
Normal file
|
@ -0,0 +1,28 @@
|
|||
args : with args; with builderDefs {src="";} null;
|
||||
let localDefs = builderDefs (rec {
|
||||
src = /* put a fetchurl here */
|
||||
fetchurl {
|
||||
url = http://prdownloads.sourceforge.net/wqy/wqy-zenhei-0.4.23-1.tar.gz;
|
||||
sha256 = "138nn81ai240av0xvcq4ab3rl73n0qlj3gwr3a36i63ry8vdj5qm";
|
||||
};
|
||||
|
||||
buildInputs = [];
|
||||
configureFlags = [];
|
||||
doInstall = FullDepEntry (''
|
||||
ensureDir $out/share/fonts
|
||||
cp *.ttf $out/share/fonts
|
||||
'') ["minInit" "addInputs" "doUnpack" "defEnsureDir"];
|
||||
}) null; /* null is a terminator for sumArgs */
|
||||
in with localDefs;
|
||||
stdenv.mkDerivation rec {
|
||||
name = "wqy-zenhei-"+version;
|
||||
builder = writeScript (name + "-builder")
|
||||
(textClosure localDefs
|
||||
[doInstall doForceShare doPropagate]);
|
||||
meta = {
|
||||
description = "
|
||||
A (mainly) Chinese Unicode font.
|
||||
";
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in a new issue