mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-03 11:02:05 +00:00
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
31 lines
770 B
Nix
31 lines
770 B
Nix
args : with args; with builderDefs;
|
|
let localDefs = builderDefs.passthru.function (rec {
|
|
src = /* put a fetchurl here */
|
|
fetchurl {
|
|
url = http://prdownloads.sourceforge.net/junicode/junicode-0.6.15.zip;
|
|
sha256 = "0p16r5s6qwyz0hayb6k61s5r2sfachlx7r6gpqqx5myx6ipbfdns";
|
|
};
|
|
|
|
buildInputs = [unzip];
|
|
configureFlags = [];
|
|
doInstall = fullDepEntry (''
|
|
unzip ${src}
|
|
ensureDir $out/share/fonts/junicode-ttf
|
|
cp *.ttf $out/share/fonts/junicode-ttf
|
|
'') ["minInit" "addInputs" "defEnsureDir"];
|
|
});
|
|
in with localDefs;
|
|
stdenv.mkDerivation rec {
|
|
name = "junicode-0.6.15";
|
|
builder = writeScript (name + "-builder")
|
|
(textClosure localDefs
|
|
[doInstall doForceShare doPropagate]);
|
|
meta = {
|
|
description = "A Unicode font";
|
|
inherit src;
|
|
};
|
|
}
|
|
|
|
|
|
|