2015-07-20 05:36:28 +01:00
|
|
|
{ stdenv, fetchurl, lua5, python }:
|
2011-04-13 06:47:51 +01:00
|
|
|
|
2015-07-20 05:36:28 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "bam-${version}";
|
|
|
|
version = "0.4.0";
|
2011-04-13 06:47:51 +01:00
|
|
|
|
2015-07-20 05:36:28 +01:00
|
|
|
src = fetchurl {
|
|
|
|
url = "http://github.com/downloads/matricks/bam/${name}.tar.bz2";
|
|
|
|
sha256 = "0z90wvyd4nfl7mybdrv9dsd4caaikc6fxw801b72gqi1m9q0c0sn";
|
|
|
|
};
|
2011-04-13 06:47:51 +01:00
|
|
|
|
2015-07-20 05:36:28 +01:00
|
|
|
buildInputs = [ lua5 python ];
|
2011-04-13 06:47:51 +01:00
|
|
|
|
2015-07-20 05:36:28 +01:00
|
|
|
buildPhase = ''${stdenv.shell} make_unix.sh'';
|
2011-04-13 06:47:51 +01:00
|
|
|
|
2015-07-20 05:36:28 +01:00
|
|
|
checkPhase = ''${python.interpreter} scripts/test.py'';
|
2011-04-13 06:47:51 +01:00
|
|
|
|
2015-07-20 05:36:28 +01:00
|
|
|
installPhase = ''
|
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"
|
2015-07-20 05:36:28 +01:00
|
|
|
'';
|
2014-11-06 00:44:33 +00:00
|
|
|
|
2015-07-20 05:36:28 +01:00
|
|
|
meta = with stdenv.lib; {
|
2011-04-13 06:47:51 +01:00
|
|
|
description = "Yet another build manager";
|
2015-07-20 05:36:28 +01:00
|
|
|
maintainers = with maintainers;
|
2011-04-13 06:47:51 +01:00
|
|
|
[
|
|
|
|
raskin
|
|
|
|
];
|
2015-07-20 05:36:28 +01:00
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.free;
|
|
|
|
downloadPage = "http://matricks.github.com/bam/";
|
2011-04-13 06:47:51 +01:00
|
|
|
};
|
2015-07-20 05:36:28 +01:00
|
|
|
}
|