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