mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 17:33:09 +00:00
luaPackages.luadbi: init at 0.5
This commit is contained in:
parent
7d04f9f8fd
commit
ec07abf316
@ -8,6 +8,7 @@
|
||||
{ fetchurl, fetchzip, stdenv, lua, callPackage, unzip, zziplib, pkgconfig, libtool
|
||||
, pcre, oniguruma, gnulib, tre, glibc, sqlite, openssl, expat, cairo
|
||||
, perl, gtk2, python, glib, gobjectIntrospection, libevent, zlib, autoreconfHook
|
||||
, libmysql, postgresql
|
||||
, fetchFromGitHub, libmpack, which
|
||||
}:
|
||||
|
||||
@ -172,6 +173,34 @@ let
|
||||
};
|
||||
};
|
||||
|
||||
luadbi = buildLuaPackage rec {
|
||||
name = "luadbi-${version}";
|
||||
version = "0.5";
|
||||
src = fetchurl {
|
||||
url = "https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/luadbi/luadbi.${version}.tar.gz";
|
||||
sha256 = "07ikxgxgfpimnwf7zrqwcwma83ss3wm2nzjxpwv2a1c0vmc684a9";
|
||||
};
|
||||
sourceRoot = ".";
|
||||
|
||||
buildInputs = [ libmysql postgresql sqlite ];
|
||||
|
||||
NIX_CFLAGS_COMPILE = [
|
||||
"-I${libmysql.dev}/include/mysql"
|
||||
"-I${postgresql}/include/server"
|
||||
];
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/lib/lua/${lua.luaversion}
|
||||
install -p DBI.lua *.so $out/lib/lua/${lua.luaversion}
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = "https://code.google.com/archive/p/luadbi/";
|
||||
platforms = stdenv.lib.platforms.unix;
|
||||
maintainers = with maintainers; [ sshishk ];
|
||||
};
|
||||
};
|
||||
|
||||
luafilesystem = buildLuaPackage rec {
|
||||
name = "filesystem-1.6.2";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user