2021-01-23 12:26:19 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, lua5_3, python }:
|
2011-04-13 06:47:51 +01:00
|
|
|
|
2015-07-20 05:36:28 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "bam";
|
2019-01-21 10:32:11 +00:00
|
|
|
version = "0.5.1";
|
2011-04-13 06:47:51 +01:00
|
|
|
|
2019-01-21 10:32:11 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "matricks";
|
|
|
|
repo = "bam";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "13br735ig7lygvzyfd15fc2rdygrqm503j6xj5xkrl1r7w2wipq6";
|
2015-07-20 05:36:28 +01:00
|
|
|
};
|
2011-04-13 06:47:51 +01:00
|
|
|
|
2019-01-21 10:32:11 +00:00
|
|
|
buildInputs = [ lua5_3 python ];
|
2011-04-13 06:47:51 +01:00
|
|
|
|
2021-01-24 09:19:10 +00:00
|
|
|
buildPhase = "${stdenv.shell} make_unix.sh";
|
2011-04-13 06:47:51 +01:00
|
|
|
|
2021-01-24 09:19:10 +00: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
|
|
|
|
2021-01-23 12:26:19 +00:00
|
|
|
meta = with 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;
|
2019-01-21 10:32:11 +00:00
|
|
|
license = licenses.zlib;
|
2015-07-20 05:36:28 +01:00
|
|
|
downloadPage = "http://matricks.github.com/bam/";
|
2011-04-13 06:47:51 +01:00
|
|
|
};
|
2015-07-20 05:36:28 +01:00
|
|
|
}
|