71f8e0911a
svn path=/nixpkgs/trunk/; revision=10913
30 lines
728 B
Nix
30 lines
728 B
Nix
args : with args;
|
|
let localDefs = builderDefs {
|
|
src =""; /* put a fetchurl here */
|
|
buildInputs = [mkfontdir mkfontscale];
|
|
configureFlags = [];
|
|
} null; /* null is a terminator for sumArgs */
|
|
in with localDefs;
|
|
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 localDefs [ doInstall doForceShare doPropagate]);
|
|
meta = {
|
|
description = "
|
|
Just a wrapper to create fonts.dir and fonts.scale .
|
|
";
|
|
inherit src;
|
|
};
|
|
}
|