28 lines
671 B
Nix
28 lines
671 B
Nix
|
args : with args;
|
||
|
with builderDefs {
|
||
|
src =""; /* put a fetchurl here */
|
||
|
buildInputs = [mkfontdir mkfontscale];
|
||
|
configureFlags = [];
|
||
|
} null; /* null is a terminator for sumArgs */
|
||
|
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")
|
||
|
(textClosure [ doInstall doForceShare doPropagate]);
|
||
|
meta = {
|
||
|
description = "
|
||
|
Just a wrapper to create fots.dir and fonts.scale .
|
||
|
";
|
||
|
};
|
||
|
}
|