2011-04-13 06:47:51 +01:00
|
|
|
x@{builderDefsPackage
|
|
|
|
, lua5, python
|
|
|
|
, ...}:
|
|
|
|
builderDefsPackage
|
2014-11-06 00:44:33 +00:00
|
|
|
(a :
|
|
|
|
let
|
|
|
|
helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++
|
2011-04-13 06:47:51 +01:00
|
|
|
[];
|
|
|
|
|
|
|
|
buildInputs = map (n: builtins.getAttr n x)
|
|
|
|
(builtins.attrNames (builtins.removeAttrs x helperArgNames));
|
|
|
|
sourceInfo = rec {
|
|
|
|
baseName="bam";
|
|
|
|
version="0.4.0";
|
|
|
|
name="${baseName}-${version}";
|
|
|
|
url="http://github.com/downloads/matricks/bam/${name}.tar.bz2";
|
|
|
|
hash="0z90wvyd4nfl7mybdrv9dsd4caaikc6fxw801b72gqi1m9q0c0sn";
|
|
|
|
};
|
|
|
|
in
|
|
|
|
rec {
|
|
|
|
src = a.fetchurl {
|
|
|
|
url = sourceInfo.url;
|
|
|
|
sha256 = sourceInfo.hash;
|
|
|
|
};
|
|
|
|
|
|
|
|
inherit (sourceInfo) name version;
|
|
|
|
inherit buildInputs;
|
|
|
|
|
|
|
|
/* doConfigure should be removed if not needed */
|
|
|
|
phaseNames = ["check" "doDeploy"];
|
|
|
|
|
|
|
|
build = a.fullDepEntry ''
|
|
|
|
sh make_unix.sh
|
|
|
|
'' ["minInit" "doUnpack" "addInputs"];
|
|
|
|
|
|
|
|
check = a.fullDepEntry ''
|
|
|
|
python scripts/test.py
|
|
|
|
'' ["build" "addInputs"];
|
|
|
|
|
|
|
|
doDeploy = a.fullDepEntry ''
|
2012-01-18 20:16:00 +00:00
|
|
|
mkdir -p "$out/share/bam"
|
2011-04-13 06:47:51 +01:00
|
|
|
cp -r docs examples tests "$out/share/bam"
|
2012-01-18 20:16:00 +00:00
|
|
|
mkdir -p "$out/bin"
|
2011-04-13 06:47:51 +01:00
|
|
|
cp bam "$out/bin"
|
|
|
|
'' ["minInit" "defEnsureDir" "build"];
|
2014-11-06 00:44:33 +00:00
|
|
|
|
2011-04-13 06:47:51 +01:00
|
|
|
meta = {
|
|
|
|
description = "Yet another build manager";
|
|
|
|
maintainers = with a.lib.maintainers;
|
|
|
|
[
|
|
|
|
raskin
|
|
|
|
];
|
|
|
|
platforms = with a.lib.platforms;
|
|
|
|
linux;
|
2014-11-06 00:44:33 +00:00
|
|
|
license = a.lib.licenses.free;
|
2011-04-13 06:47:51 +01:00
|
|
|
};
|
|
|
|
passthru = {
|
|
|
|
updateInfo = {
|
|
|
|
downloadPage = "http://matricks.github.com/bam/";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}) x
|