diff options
author | Yury G. Kudryashov <urkud.urkud@gmail.com> | 2008-01-15 00:55:21 +0000 |
---|---|---|
committer | Yury G. Kudryashov <urkud.urkud@gmail.com> | 2008-01-15 00:55:21 +0000 |
commit | a7703662a4ee043c1ba684d30ede016bb5dc2e41 (patch) | |
tree | 959345e65cd959b7a4cac52c4e5def9f4608494b /pkgs/data/fonts | |
parent | e17a21b8202dffa6fd5a34792a3f9c73b1b80c7a (diff) | |
download | nixlib-a7703662a4ee043c1ba684d30ede016bb5dc2e41.tar nixlib-a7703662a4ee043c1ba684d30ede016bb5dc2e41.tar.gz nixlib-a7703662a4ee043c1ba684d30ede016bb5dc2e41.tar.bz2 nixlib-a7703662a4ee043c1ba684d30ede016bb5dc2e41.tar.lz nixlib-a7703662a4ee043c1ba684d30ede016bb5dc2e41.tar.xz nixlib-a7703662a4ee043c1ba684d30ede016bb5dc2e41.tar.zst nixlib-a7703662a4ee043c1ba684d30ede016bb5dc2e41.zip |
Merged with trunk
svn path=/nixpkgs/branches/stdenv-updates/; revision=10145
Diffstat (limited to 'pkgs/data/fonts')
-rw-r--r-- | pkgs/data/fonts/fontWrap/default.nix | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/pkgs/data/fonts/fontWrap/default.nix b/pkgs/data/fonts/fontWrap/default.nix new file mode 100644 index 000000000000..ef370be8e356 --- /dev/null +++ b/pkgs/data/fonts/fontWrap/default.nix @@ -0,0 +1,27 @@ +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 . +"; + }; +} |