lol
1{ stdenv, fetchurl, lua5, python }:
2
3stdenv.mkDerivation rec {
4 name = "bam-${version}";
5 version = "0.4.0";
6
7 src = fetchurl {
8 url = "http://github.com/downloads/matricks/bam/${name}.tar.bz2";
9 sha256 = "0z90wvyd4nfl7mybdrv9dsd4caaikc6fxw801b72gqi1m9q0c0sn";
10 };
11
12 buildInputs = [ lua5 python ];
13
14 buildPhase = ''${stdenv.shell} make_unix.sh'';
15
16 checkPhase = ''${python.interpreter} scripts/test.py'';
17
18 installPhase = ''
19 mkdir -p "$out/share/bam"
20 cp -r docs examples tests "$out/share/bam"
21 mkdir -p "$out/bin"
22 cp bam "$out/bin"
23 '';
24
25 meta = with stdenv.lib; {
26 description = "Yet another build manager";
27 maintainers = with maintainers;
28 [
29 raskin
30 ];
31 platforms = platforms.linux;
32 license = licenses.free;
33 downloadPage = "http://matricks.github.com/bam/";
34 };
35}