2010-06-23 11:41:17 +04:00
|
|
|
x@{builderDefsPackage
|
|
|
|
(abort "Specify dependencies")
|
|
|
|
, ...}:
|
|
|
|
builderDefsPackage
|
|
|
|
(a :
|
|
|
|
let
|
|
|
|
helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++
|
|
|
|
[(abort "Specify helper argument names")];
|
2010-08-21 01:55:36 +04:00
|
|
|
|
2010-06-23 11:41:17 +04:00
|
|
|
buildInputs = map (n: builtins.getAttr n x)
|
|
|
|
(builtins.attrNames (builtins.removeAttrs x helperArgNames));
|
2010-09-20 11:48:17 +04:00
|
|
|
sourceInfo = rec {
|
2010-12-03 14:26:34 +03:00
|
|
|
baseName="${abort ''Specify package name''}";
|
|
|
|
version="";
|
|
|
|
name="${baseName}-${version}";
|
|
|
|
url="${name}";
|
|
|
|
hash="";
|
2010-08-21 01:55:36 +04:00
|
|
|
};
|
2010-06-23 11:41:17 +04:00
|
|
|
in
|
|
|
|
rec {
|
2010-08-21 01:55:36 +04:00
|
|
|
src = a.fetchurl {
|
|
|
|
url = sourceInfo.url;
|
|
|
|
sha256 = sourceInfo.hash;
|
|
|
|
};
|
2010-06-23 11:41:17 +04:00
|
|
|
|
2010-08-21 01:55:36 +04:00
|
|
|
inherit (sourceInfo) name version;
|
2010-06-23 11:41:17 +04: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");
|
2011-01-01 23:28:38 +03:00
|
|
|
license = a.lib.licenses.(abort "Specify license");
|
2010-06-23 11:41:17 +04:00
|
|
|
};
|
2010-08-21 01:55:36 +04:00
|
|
|
passthru = {
|
|
|
|
updateInfo = {
|
|
|
|
downloadPage = "${abort ''Specify download page''}";
|
|
|
|
};
|
|
|
|
};
|
2010-06-23 11:41:17 +04:00
|
|
|
}) x
|
|
|
|
|