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-09-20 08:48:17 +01: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 22:55:36 +01:00
|
|
|
};
|
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");
|
2011-01-01 20:28:38 +00:00
|
|
|
license = a.lib.licenses.(abort "Specify license");
|
2010-06-23 08:41:17 +01:00
|
|
|
};
|
2010-08-20 22:55:36 +01:00
|
|
|
passthru = {
|
|
|
|
updateInfo = {
|
|
|
|
downloadPage = "${abort ''Specify download page''}";
|
|
|
|
};
|
|
|
|
};
|
2010-06-23 08:41:17 +01:00
|
|
|
}) x
|
|
|
|
|