depot/third_party/nixpkgs/pkgs/development/tools/toluapp/default.nix
Default email a71eb02b76 Project import generated by Copybara.
GitOrigin-RevId: a115bb9bd56831941be3776c8a94005867f316a7
2022-11-27 10:42:12 +01:00

27 lines
700 B
Nix

{ lib, stdenv, fetchFromGitHub, cmake, lua }:
stdenv.mkDerivation rec {
version = "1.0.93";
pname = "toluapp";
src = fetchFromGitHub {
owner = "LuaDist";
repo = "toluapp";
rev = version;
sha256 = "0zd55bc8smmgk9j4cf0jpibb03lgsvl0knpwhplxbv93mcdnw7s0";
};
nativeBuildInputs = [ cmake ];
buildInputs = [ lua ];
patches = [ ./environ-and-linux-is-kinda-posix.patch ./headers.patch ];
meta = with lib; {
description = "A tool to integrate C/Cpp code with Lua";
homepage = "http://www.codenix.com/~tolua/";
license = licenses.mit;
maintainers = with maintainers; [ vrthra ];
mainProgram = "tolua++";
platforms = with platforms; unix;
};
}