summary refs log tree commit diff
path: root/pkgs/data/fonts/wqy_zenhei/0.4.23-1.nix
blob: edf9f8c40ffe7329eda12ae7d6c3493fbd791b00 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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;
	};
}