2015-09-15 07:27:19 +03:00
|
|
|
args @ { fetchurl, stdenv, builderDefs, paths, mkfontdir, mkfontscale }:
|
|
|
|
with args;
|
2008-11-05 00:24:10 +03:00
|
|
|
let localDefs = builderDefs.passthru.function {
|
2007-12-25 15:29:02 +03:00
|
|
|
src =""; /* put a fetchurl here */
|
2010-11-10 16:22:53 +03:00
|
|
|
buildInputs = [mkfontdir mkfontscale];
|
2007-12-25 15:29:02 +03:00
|
|
|
configureFlags = [];
|
2008-08-19 09:54:09 +04:00
|
|
|
};
|
2008-01-18 15:36:56 +03:00
|
|
|
in with localDefs;
|
2007-12-25 15:29:02 +03:00
|
|
|
let
|
2009-05-20 03:25:58 +04:00
|
|
|
doInstall = fullDepEntry ("
|
2012-01-19 00:16:00 +04:00
|
|
|
mkdir -p \$out/share/fonts/
|
2007-12-25 15:29:02 +03:00
|
|
|
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 15:36:56 +03:00
|
|
|
(textClosure localDefs [ doInstall doForceShare doPropagate]);
|
2014-02-11 00:03:17 +04:00
|
|
|
preferLocalBuild = true;
|
2007-12-25 15:29:02 +03:00
|
|
|
meta = {
|
|
|
|
description = "
|
2008-01-18 15:36:56 +03:00
|
|
|
Just a wrapper to create fonts.dir and fonts.scale .
|
2007-12-25 15:29:02 +03:00
|
|
|
";
|
2008-03-02 21:49:31 +03:00
|
|
|
inherit src;
|
2007-12-25 15:29:02 +03:00
|
|
|
};
|
|
|
|
}
|