2015-07-20 06:36:28 +02:00
|
|
|
{ stdenv, fetchurl, lua5, python }:
|
2011-04-13 07:47:51 +02:00
|
|
|
|
2015-07-20 06:36:28 +02:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "bam-${version}";
|
|
|
|
version = "0.4.0";
|
2011-04-13 07:47:51 +02:00
|
|
|
|
2015-07-20 06:36:28 +02:00
|
|
|
src = fetchurl {
|
|
|
|
url = "http://github.com/downloads/matricks/bam/${name}.tar.bz2";
|
|
|
|
sha256 = "0z90wvyd4nfl7mybdrv9dsd4caaikc6fxw801b72gqi1m9q0c0sn";
|
|
|
|
};
|
2011-04-13 07:47:51 +02:00
|
|
|
|
2015-07-20 06:36:28 +02:00
|
|
|
buildInputs = [ lua5 python ];
|
2011-04-13 07:47:51 +02:00
|
|
|
|
2015-07-20 06:36:28 +02:00
|
|
|
buildPhase = ''${stdenv.shell} make_unix.sh'';
|
2011-04-13 07:47:51 +02:00
|
|
|
|
2015-07-20 06:36:28 +02:00
|
|
|
checkPhase = ''${python.interpreter} scripts/test.py'';
|
2011-04-13 07:47:51 +02:00
|
|
|
|
2015-07-20 06:36:28 +02:00
|
|
|
installPhase = ''
|
2012-01-18 21:16:00 +01:00
|
|
|
mkdir -p "$out/share/bam"
|
2011-04-13 07:47:51 +02:00
|
|
|
cp -r docs examples tests "$out/share/bam"
|
2012-01-18 21:16:00 +01:00
|
|
|
mkdir -p "$out/bin"
|
2011-04-13 07:47:51 +02:00
|
|
|
cp bam "$out/bin"
|
2015-07-20 06:36:28 +02:00
|
|
|
'';
|
2014-11-06 01:44:33 +01:00
|
|
|
|
2015-07-20 06:36:28 +02:00
|
|
|
meta = with stdenv.lib; {
|
2011-04-13 07:47:51 +02:00
|
|
|
description = "Yet another build manager";
|
2015-07-20 06:36:28 +02:00
|
|
|
maintainers = with maintainers;
|
2011-04-13 07:47:51 +02:00
|
|
|
[
|
|
|
|
raskin
|
|
|
|
];
|
2015-07-20 06:36:28 +02:00
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.free;
|
|
|
|
downloadPage = "http://matricks.github.com/bam/";
|
2011-04-13 07:47:51 +02:00
|
|
|
};
|
2015-07-20 06:36:28 +02:00
|
|
|
}
|