2007-12-25 12:29:02 +00:00
|
|
|
args : with args;
|
2008-11-04 21:24:10 +00:00
|
|
|
let localDefs = builderDefs.passthru.function {
|
2007-12-25 12:29:02 +00:00
|
|
|
src =""; /* put a fetchurl here */
|
2010-11-10 13:22:53 +00:00
|
|
|
buildInputs = [mkfontdir mkfontscale];
|
2007-12-25 12:29:02 +00:00
|
|
|
configureFlags = [];
|
2008-08-19 06:54:09 +01:00
|
|
|
};
|
2008-01-18 12:36:56 +00:00
|
|
|
in with localDefs;
|
2007-12-25 12:29:02 +00:00
|
|
|
let
|
2009-05-20 00:25:58 +01:00
|
|
|
doInstall = fullDepEntry ("
|
2007-12-25 12:29:02 +00:00
|
|
|
ensureDir \$out/share/fonts/
|
|
|
|
cd \$out/share/fonts
|
|
|
|
for i in ${toString paths}; do
|
|
|
|
find \$i -type f -exec ln -s '{}' . ';' ;
|
|
|
|
done
|
|
|
|
mkfontdir
|
|
|
|
mkfontscale
|
|
|
|
") [minInit addInputs defEnsureDir] ;
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "wrapped-font-dir";
|
|
|
|
builder = writeScript (name + "-builder")
|
2008-01-18 12:36:56 +00:00
|
|
|
(textClosure localDefs [ doInstall doForceShare doPropagate]);
|
2007-12-25 12:29:02 +00:00
|
|
|
meta = {
|
|
|
|
description = "
|
2008-01-18 12:36:56 +00:00
|
|
|
Just a wrapper to create fonts.dir and fonts.scale .
|
2007-12-25 12:29:02 +00:00
|
|
|
";
|
2008-03-02 18:49:31 +00:00
|
|
|
inherit src;
|
2007-12-25 12:29:02 +00:00
|
|
|
};
|
|
|
|
}
|