summary refs log tree commit diff
path: root/pkgs/development/tools/toluapp/default.nix
blob: 1214058698e2d430e198b6c5b2d3884949085ce3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{ stdenv, fetchFromGitHub, scons, lua }:

stdenv.mkDerivation rec {
  version = "1.0.93";
  name = "toluapp-${version}";

  src = fetchFromGitHub {
    owner = "LuaDist";
    repo  = "toluapp";
    rev   = "${version}";
    sha256 = "0zd55bc8smmgk9j4cf0jpibb03lgsvl0knpwhplxbv93mcdnw7s0";
  };

  nativeBuildInputs = [ scons ];
  buildInputs = [ lua ];

  patches = [ ./environ-and-linux-is-kinda-posix.patch ];

  preConfigure = ''
    substituteInPlace config_posix.py \
      --replace /usr/local $out
  '';

  meta = with stdenv.lib; {
    description = "A tool to integrate C/Cpp code with Lua";
    homepage = http://www.codenix.com/~tolua/;
    license = licenses.mit;
    maintainers = with maintainers; [ vrthra ];
    platforms = with platforms; unix;
  };
}