forked from mirrors/nixpkgs
fcad0b0a5a
Some of these should be longDescriptions, but most others just shouldn't contain newlines. E.g. write description = "Bla"; and not description = '' Bla ''; This pollutes "nix-env -qa --description" output. svn path=/nixpkgs/trunk/; revision=14310
28 lines
753 B
Nix
28 lines
753 B
Nix
args : with args; with builderDefs;
|
|
let localDefs = builderDefs.passthru.function (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"];
|
|
});
|
|
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";
|
|
inherit src;
|
|
};
|
|
}
|
|
|