7f5b839524
`selectVersion ./foo "bar"' instead of `import ./foo/bar.nix'. * Replaced `with args' with formal function arguments in several packages. * Renamed several files to `default.nix'. As a general rule, version numbers should only be included in the filename when there is a reason to keep multiple versions of a package in Nixpkgs. Otherwise, it just makes it harder to update the package. svn path=/nixpkgs/trunk/; revision=18403
30 lines
793 B
Nix
30 lines
793 B
Nix
args : with args; with builderDefs;
|
|
let localDefs = builderDefs.passthru.function (rec {
|
|
src = /* put a fetchurl here */
|
|
fetchurl {
|
|
url = http://crl.nmsu.edu/~mleisher/cu/cu12-1.9.tar.gz;
|
|
sha256 = "0256h6f3ky529jc39hh0nvkngy48a0x3gss2z81g5ddi1qzfw0pn";
|
|
};
|
|
buildInputs = [mkfontdir mkfontscale];
|
|
configureFlags = [];
|
|
doInstall = fullDepEntry (''
|
|
tar xf ${src}
|
|
ensureDir $out/share/fonts/
|
|
cp *.bdf $out/share/fonts
|
|
cd $out/share/fonts
|
|
mkfontdir
|
|
mkfontscale
|
|
'') ["minInit" "defEnsureDir" "addInputs"];
|
|
});
|
|
in with localDefs;
|
|
stdenv.mkDerivation rec {
|
|
name = "clearlyU-12-1.9";
|
|
builder = writeScript (name + "-builder")
|
|
(textClosure localDefs
|
|
[doInstall doForceShare doPropagate]);
|
|
meta = {
|
|
description = "A Unicode font";
|
|
inherit src;
|
|
};
|
|
}
|