2010-06-23 08:41:17 +01:00
|
|
|
x@{builderDefsPackage
|
|
|
|
(abort "Specify dependencies")
|
|
|
|
, ...}:
|
|
|
|
builderDefsPackage
|
|
|
|
(a :
|
|
|
|
let
|
|
|
|
helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++
|
|
|
|
[(abort "Specify helper argument names")];
|
2010-08-20 22:55:36 +01:00
|
|
|
|
2010-06-23 08:41:17 +01:00
|
|
|
buildInputs = map (n: builtins.getAttr n x)
|
|
|
|
(builtins.attrNames (builtins.removeAttrs x helperArgNames));
|
2010-08-20 22:55:36 +01:00
|
|
|
sourceInfo = {
|
|
|
|
};
|
2010-06-23 08:41:17 +01:00
|
|
|
in
|
|
|
|
rec {
|
2010-08-20 22:55:36 +01:00
|
|
|
src = a.fetchurl {
|
|
|
|
url = sourceInfo.url;
|
|
|
|
sha256 = sourceInfo.hash;
|
|
|
|
};
|
2010-06-23 08:41:17 +01:00
|
|
|
|
2010-08-20 22:55:36 +01:00
|
|
|
inherit (sourceInfo) name version;
|
2010-06-23 08:41:17 +01:00
|
|
|
inherit buildInputs;
|
|
|
|
|
|
|
|
/* doConfigure should be removed if not needed */
|
|
|
|
phaseNames = ["doConfigure" "doMakeInstall"];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "${abort ''Specify description''}";
|
|
|
|
maintainers = with a.lib.maintainers;
|
|
|
|
[
|
|
|
|
(abort "Specify maintainers")
|
|
|
|
];
|
|
|
|
platforms = with a.lib.platforms;
|
|
|
|
(abort "Specify platforms");
|
|
|
|
};
|
2010-08-20 22:55:36 +01:00
|
|
|
passthru = {
|
|
|
|
updateInfo = {
|
|
|
|
downloadPage = "${abort ''Specify download page''}";
|
|
|
|
};
|
|
|
|
};
|
2010-06-23 08:41:17 +01:00
|
|
|
}) x
|
|
|
|
|