summary refs log tree commit diff
path: root/pkgs/data/fonts/junicode/0.6.15.nix
blob: f991a387976e93badfbd1dc56321d813421ed220 (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
28
29
30
args : with args; with builderDefs;
	let localDefs = builderDefs.passthru.function (rec {
		src = /* put a fetchurl here */
		fetchurl {
		  url = http://prdownloads.sourceforge.net/junicode/junicode-0.6.15.zip;
		  sha256 = "0p16r5s6qwyz0hayb6k61s5r2sfachlx7r6gpqqx5myx6ipbfdns";
		};

		buildInputs = [unzip];
		configureFlags = [];
		doInstall = fullDepEntry (''
			unzip ${src}
			ensureDir $out/share/fonts/junicode-ttf
			cp *.ttf $out/share/fonts/junicode-ttf
		'') ["minInit" "addInputs" "defEnsureDir"];
	});
	in with localDefs;
stdenv.mkDerivation rec {
	name = "junicode-0.6.15";
	builder = writeScript (name + "-builder")
		(textClosure localDefs 
			[doInstall doForceShare doPropagate]);
	meta = {
		description = "A Unicode font";
		inherit src;
	};
}