@@ -1,31 +1,31 @@
11args @ { fetchurl, stdenv, builderDefs, paths, mkfontdir, mkfontscale }:
22with args;
3− let localDefs = builderDefs.passthru.function {
4− src =""; /* put a fetchurl here */
5− buildInputs = [mkfontdir mkfontscale];
6− configureFlags = [];
7− };
8− in with localDefs;
3+ let localDefs = builderDefs.passthru.function {
4+ src =""; /* put a fetchurl here */
5+ buildInputs = [mkfontdir mkfontscale];
6+ configureFlags = [];
7+ };
8+ in with localDefs;
99let
10− doInstall = fullDepEntry ("
11− mkdir -p \$out/share/fonts/
12− cd \$out/share/fonts
13− for i in ${toString paths}; do
14− find \$i -type f -exec ln -s '{}' . ';' ;
15− done
16− mkfontdir
17− mkfontscale
18− ") [minInit addInputs defEnsureDir] ;
10+ doInstall = fullDepEntry ("
11+ mkdir -p \$out/share/fonts/
12+ cd \$out/share/fonts
13+ for i in ${toString paths}; do
14+ find \$i -type f -exec ln -s '{}' . ';' ;
15+ done
16+ mkfontdir
17+ mkfontscale
18+ ") [minInit addInputs defEnsureDir] ;
1919in
2020stdenv.mkDerivation rec {
21− name = "wrapped-font-dir";
22− builder = writeScript (name + "-builder")
23− (textClosure localDefs [ doInstall doForceShare doPropagate]);
21+ name = "wrapped-font-dir";
22+ builder = writeScript (name + "-builder")
23+ (textClosure localDefs [ doInstall doForceShare doPropagate]);
2424 preferLocalBuild = true;
25− meta = {
26− description = "
27− Just a wrapper to create fonts.dir and fonts.scale .
25+ meta = {
26+ description = "
27+ Just a wrapper to create fonts.dir and fonts.scale .
2828";
29− inherit src;
30− };
29+ inherit src;
30+ };
3131}