git.iko.soy/typeable/nixpkgs
on master help sign in
luaPackages.luadbi: init at 0.5
commitec07abf3165b7d096608daf28833473aa629a0a4 authorSatoshi Shishiku <satoshi.shishiku@tuta.io> dateWed 1 Mar 2017, 00:57 (10 years ago) parent7d04f9f
1 file changed+29
pkgs/top-level/lua-packages.nix+29
pkgs/top-level/lua-packages.nix+29
@@ -8,6 +8,7 @@
88{ fetchurl, fetchzip, stdenv, lua, callPackage, unzip, zziplib, pkgconfig, libtool
99, pcre, oniguruma, gnulib, tre, glibc, sqlite, openssl, expat, cairo
1010, perl, gtk2, python, glib, gobjectIntrospection, libevent, zlib, autoreconfHook
11+, libmysql, postgresql
1112, fetchFromGitHub, libmpack, which
1213}:
1314
@@ -172,6 +173,34 @@ let
172173 };
173174 };
174175
176+ luadbi = buildLuaPackage rec {
177+ name = "luadbi-${version}";
178+ version = "0.5";
179+ src = fetchurl {
180+ url = "https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/luadbi/luadbi.${version}.tar.gz";
181+ sha256 = "07ikxgxgfpimnwf7zrqwcwma83ss3wm2nzjxpwv2a1c0vmc684a9";
182+ };
183+ sourceRoot = ".";
184+
185+ buildInputs = [ libmysql postgresql sqlite ];
186+
187+ NIX_CFLAGS_COMPILE = [
188+ "-I${libmysql.dev}/include/mysql"
189+ "-I${postgresql}/include/server"
190+ ];
191+
192+ installPhase = ''
193+ mkdir -p $out/lib/lua/${lua.luaversion}
194+ install -p DBI.lua *.so $out/lib/lua/${lua.luaversion}
195+ '';
196+
197+ meta = with stdenv.lib; {
198+ homepage = "https://code.google.com/archive/p/luadbi/";
199+ platforms = stdenv.lib.platforms.unix;
200+ maintainers = with maintainers; [ sshishk ];
201+ };
202+ };
203+
175204 luafilesystem = buildLuaPackage rec {
176205 name = "filesystem-1.6.2";
177206