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