Changed builderDefs to use composedArgsAndFun, reduced number of nulls, made overrides in builderDefsPackage to work in an intuitive manner.
svn path=/nixpkgs/trunk/; revision=12655
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
args : with args; with builderDefs {src="";} null;
|
||||
let localDefs = builderDefs (rec {
|
||||
args : with args; with builderDefs;
|
||||
let localDefs = builderDefs.meta.function (rec {
|
||||
src = /* put a fetchurl here */
|
||||
fetchurl {
|
||||
url = http://crl.nmsu.edu/~mleisher/cu/cu12-1.9.tar.gz;
|
||||
@@ -15,7 +15,7 @@ args : with args; with builderDefs {src="";} null;
|
||||
mkfontdir
|
||||
mkfontscale
|
||||
'') ["minInit" "defEnsureDir" "addInputs"];
|
||||
}) null; /* null is a terminator for sumArgs */
|
||||
});
|
||||
in with localDefs;
|
||||
stdenv.mkDerivation rec {
|
||||
name = "clearlyU-12-"+version;
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
args : with args;
|
||||
let localDefs = builderDefs {
|
||||
let localDefs = builderDefs.meta.function {
|
||||
src =""; /* put a fetchurl here */
|
||||
buildInputs = [mkfontdir mkfontscale ttmkfdir];
|
||||
configureFlags = [];
|
||||
} null; /* null is a terminator for sumArgs */
|
||||
};
|
||||
in with localDefs;
|
||||
let
|
||||
doInstall = FullDepEntry ("
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
args : with args; with builderDefs {src="";} null;
|
||||
let localDefs = builderDefs (rec {
|
||||
args : with args; with builderDefs;
|
||||
let localDefs = builderDefs.meta.function (rec {
|
||||
src = /* put a fetchurl here */
|
||||
fetchurl {
|
||||
url = http://prdownloads.sourceforge.net/junicode/junicode-0.6.15.zip;
|
||||
@@ -13,7 +13,7 @@ args : with args; with builderDefs {src="";} null;
|
||||
ensureDir $out/share/fonts/junicode-ttf
|
||||
cp *.ttf $out/share/fonts/junicode-ttf
|
||||
'') ["minInit" "addInputs" "defEnsureDir"];
|
||||
}) null; /* null is a terminator for sumArgs */
|
||||
});
|
||||
in with localDefs;
|
||||
stdenv.mkDerivation rec {
|
||||
name = "junicode-"+version;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
args : with args; with builderDefs {src="";} null;
|
||||
let localDefs = builderDefs (rec {
|
||||
args : with args; with builderDefs;
|
||||
let localDefs = builderDefs.meta.function (rec {
|
||||
src = /* put a fetchurl here */
|
||||
fetchurl {
|
||||
url = http://prdownloads.sourceforge.net/wqy/wqy-zenhei-0.4.23-1.tar.gz;
|
||||
@@ -12,7 +12,7 @@ args : with args; with builderDefs {src="";} null;
|
||||
ensureDir $out/share/fonts
|
||||
cp *.ttf $out/share/fonts
|
||||
'') ["minInit" "addInputs" "doUnpack" "defEnsureDir"];
|
||||
}) null; /* null is a terminator for sumArgs */
|
||||
});
|
||||
in with localDefs;
|
||||
stdenv.mkDerivation rec {
|
||||
name = "wqy-zenhei-"+version;
|
||||
|
||||
Reference in New Issue
Block a user