2008-08-19 06:54:09 +01:00
|
|
|
args : with args; with builderDefs;
|
2008-11-04 21:24:10 +00:00
|
|
|
let localDefs = builderDefs.passthru.function (rec {
|
2008-03-02 18:39:33 +00:00
|
|
|
src = /* put a fetchurl here */
|
|
|
|
fetchurl {
|
|
|
|
url = http://prdownloads.sourceforge.net/wqy/wqy-zenhei-0.4.23-1.tar.gz;
|
|
|
|
sha256 = "138nn81ai240av0xvcq4ab3rl73n0qlj3gwr3a36i63ry8vdj5qm";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [];
|
|
|
|
configureFlags = [];
|
2009-05-20 00:25:58 +01:00
|
|
|
doInstall = fullDepEntry (''
|
2008-03-02 18:39:33 +00:00
|
|
|
ensureDir $out/share/fonts
|
|
|
|
cp *.ttf $out/share/fonts
|
|
|
|
'') ["minInit" "addInputs" "doUnpack" "defEnsureDir"];
|
2008-08-19 06:54:09 +01:00
|
|
|
});
|
2008-03-02 18:39:33 +00:00
|
|
|
in with localDefs;
|
|
|
|
stdenv.mkDerivation rec {
|
2009-11-18 09:39:59 +00:00
|
|
|
name = "wqy-zenhei-0.4.23-1";
|
2008-03-02 18:39:33 +00:00
|
|
|
builder = writeScript (name + "-builder")
|
|
|
|
(textClosure localDefs
|
|
|
|
[doInstall doForceShare doPropagate]);
|
|
|
|
meta = {
|
2009-03-03 13:27:40 +00:00
|
|
|
description = "A (mainly) Chinese Unicode font";
|
2008-03-02 18:49:31 +00:00
|
|
|
inherit src;
|
2008-03-02 18:39:33 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|