fcad0b0a5a
Some of these should be longDescriptions, but most others just shouldn't contain newlines. E.g. write description = "Bla"; and not description = '' Bla ''; This pollutes "nix-env -qa --description" output. svn path=/nixpkgs/trunk/; revision=14310
30 lines
772 B
Nix
30 lines
772 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-"+version;
|
|
builder = writeScript (name + "-builder")
|
|
(textClosure localDefs
|
|
[doInstall doForceShare doPropagate]);
|
|
meta = {
|
|
description = "A Unicode font";
|
|
inherit src;
|
|
};
|
|
}
|
|
|
|
|
|
|