2008-08-19 07:54:09 +02:00
|
|
|
args : with args; with builderDefs;
|
2008-11-04 22:24:10 +01:00
|
|
|
let localDefs = builderDefs.passthru.function (rec {
|
2008-03-02 19:39:33 +01:00
|
|
|
src = /* put a fetchurl here */
|
|
|
|
fetchurl {
|
|
|
|
url = http://crl.nmsu.edu/~mleisher/cu/cu12-1.9.tar.gz;
|
|
|
|
sha256 = "0256h6f3ky529jc39hh0nvkngy48a0x3gss2z81g5ddi1qzfw0pn";
|
|
|
|
};
|
|
|
|
buildInputs = [mkfontdir mkfontscale];
|
|
|
|
configureFlags = [];
|
2009-05-20 01:25:58 +02:00
|
|
|
doInstall = fullDepEntry (''
|
2008-03-02 19:39:33 +01:00
|
|
|
tar xf ${src}
|
|
|
|
ensureDir $out/share/fonts/
|
|
|
|
cp *.bdf $out/share/fonts
|
|
|
|
cd $out/share/fonts
|
|
|
|
mkfontdir
|
|
|
|
mkfontscale
|
|
|
|
'') ["minInit" "defEnsureDir" "addInputs"];
|
2008-08-19 07:54:09 +02:00
|
|
|
});
|
2008-03-02 19:39:33 +01:00
|
|
|
in with localDefs;
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "clearlyU-12-"+version;
|
|
|
|
builder = writeScript (name + "-builder")
|
|
|
|
(textClosure localDefs
|
|
|
|
[doInstall doForceShare doPropagate]);
|
|
|
|
meta = {
|
2009-03-03 14:27:40 +01:00
|
|
|
description = "A Unicode font";
|
2008-03-02 19:49:31 +01:00
|
|
|
inherit src;
|
2008-03-02 19:39:33 +01:00
|
|
|
};
|
|
|
|
}
|