Update the currently used autocallable template to make it usable with probable future autoupdater..
svn path=/nixpkgs/trunk/; revision=23297
This commit is contained in:
parent
b147842dce
commit
3039709cd6
|
@ -4,16 +4,21 @@ x@{builderDefsPackage
|
||||||
builderDefsPackage
|
builderDefsPackage
|
||||||
(a :
|
(a :
|
||||||
let
|
let
|
||||||
s = import ./src-for-default.nix;
|
|
||||||
helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++
|
helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++
|
||||||
[(abort "Specify helper argument names")];
|
[(abort "Specify helper argument names")];
|
||||||
|
|
||||||
buildInputs = map (n: builtins.getAttr n x)
|
buildInputs = map (n: builtins.getAttr n x)
|
||||||
(builtins.attrNames (builtins.removeAttrs x helperArgNames));
|
(builtins.attrNames (builtins.removeAttrs x helperArgNames));
|
||||||
|
sourceInfo = {
|
||||||
|
};
|
||||||
in
|
in
|
||||||
rec {
|
rec {
|
||||||
src = a.fetchUrlFromSrcInfo s;
|
src = a.fetchurl {
|
||||||
|
url = sourceInfo.url;
|
||||||
|
sha256 = sourceInfo.hash;
|
||||||
|
};
|
||||||
|
|
||||||
inherit (s) name;
|
inherit (sourceInfo) name version;
|
||||||
inherit buildInputs;
|
inherit buildInputs;
|
||||||
|
|
||||||
/* doConfigure should be removed if not needed */
|
/* doConfigure should be removed if not needed */
|
||||||
|
@ -28,5 +33,10 @@ rec {
|
||||||
platforms = with a.lib.platforms;
|
platforms = with a.lib.platforms;
|
||||||
(abort "Specify platforms");
|
(abort "Specify platforms");
|
||||||
};
|
};
|
||||||
|
passthru = {
|
||||||
|
updateInfo = {
|
||||||
|
downloadPage = "${abort ''Specify download page''}";
|
||||||
|
};
|
||||||
|
};
|
||||||
}) x
|
}) x
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue