nixpkgs/pkgs/development/tools/build-managers/bam/default.nix

36 lines
830 B
Nix
Raw Normal View History

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