2007-12-25 13:29:02 +01:00
|
|
|
args : with args;
|
2008-01-18 13:36:56 +01:00
|
|
|
let localDefs = builderDefs {
|
2007-12-25 13:29:02 +01:00
|
|
|
src =""; /* put a fetchurl here */
|
|
|
|
buildInputs = [mkfontdir mkfontscale];
|
|
|
|
configureFlags = [];
|
|
|
|
} null; /* null is a terminator for sumArgs */
|
2008-01-18 13:36:56 +01:00
|
|
|
in with localDefs;
|
2007-12-25 13:29:02 +01:00
|
|
|
let
|
|
|
|
doInstall = FullDepEntry ("
|
|
|
|
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 13:36:56 +01:00
|
|
|
(textClosure localDefs [ doInstall doForceShare doPropagate]);
|
2007-12-25 13:29:02 +01:00
|
|
|
meta = {
|
|
|
|
description = "
|
2008-01-18 13:36:56 +01:00
|
|
|
Just a wrapper to create fonts.dir and fonts.scale .
|
2007-12-25 13:29:02 +01:00
|
|
|
";
|
|
|
|
};
|
|
|
|
}
|