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 = ftp://ftp.deepspace6.net/pub/ds6/sources/nc6/nc6-1.0.tar.bz2;
|
||||
@@ -8,7 +8,7 @@ let localDefs = builderDefs (rec {
|
||||
|
||||
buildInputs = [];
|
||||
configureFlags = [];
|
||||
}) null; /* null is a terminator for sumArgs */
|
||||
});
|
||||
in with localDefs;
|
||||
stdenv.mkDerivation rec {
|
||||
name = "nc6-"+version;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
args : with args; with builderDefs {src="";} null;
|
||||
let localDefs = builderDefs {
|
||||
args : with args; with builderDefs;
|
||||
let localDefs = builderDefs.meta.function {
|
||||
src = /* put a fetchurl here */
|
||||
fetchurl {
|
||||
url = http://www.ricardis.tudelft.nl/~vincent/fusesmb/download/fusesmb-0.8.7.tar.gz;
|
||||
@@ -14,7 +14,7 @@ args : with args; with builderDefs {src="";} null;
|
||||
ln -fs ${samba}/lib/libsmbclient.so $out/lib/libsmbclient.so.0
|
||||
'')
|
||||
[ "minInit" "defEnsureDir" "doMakeInstall"];
|
||||
} null; /* null is a terminator for sumArgs */
|
||||
};
|
||||
in with localDefs;
|
||||
stdenv.mkDerivation rec {
|
||||
name = "smbfs-fuse-"+version;
|
||||
|
||||
Reference in New Issue
Block a user