nixpkgs/pkgs/development/tools/toluapp/default.nix

36 lines
801 B
Nix
Raw Normal View History

2015-03-24 21:53:10 +03:00
{ stdenv, fetchFromGitHub, scons, lua }:
stdenv.mkDerivation rec {
2016-06-27 04:57:10 +03:00
version = "1.0.93";
2015-03-24 21:53:10 +03:00
name = "toluapp-${version}";
src = fetchFromGitHub {
2016-06-27 04:57:10 +03:00
owner = "LuaDist";
2015-03-24 21:53:10 +03:00
repo = "toluapp";
2016-06-27 04:57:10 +03:00
rev = "${version}";
sha256 = "0zd55bc8smmgk9j4cf0jpibb03lgsvl0knpwhplxbv93mcdnw7s0";
2015-03-24 21:53:10 +03:00
};
buildInputs = [ lua scons ];
patches = [ ./environ-and-linux-is-kinda-posix.patch ];
preConfigure = ''
substituteInPlace config_posix.py \
--replace /usr/local $out
'';
NIX_CFLAGS_COMPILE = "-fPIC";
buildPhase = ''scons'';
installPhase = ''scons install'';
2016-06-27 04:57:10 +03:00
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 ];
2015-03-24 21:53:10 +03:00
};
}