2014-06-29 23:38:05 +01:00
|
|
|
{ stdenv, fetchurl, lua5, expat }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
version = "1.3.0";
|
|
|
|
name = "lua-expat-${version}";
|
|
|
|
isLibrary = true;
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://matthewwild.co.uk/projects/luaexpat/luaexpat-${version}.tar.gz";
|
|
|
|
sha256 = "1hvxqngn0wf5642i5p3vcyhg3pmp102k63s9ry4jqyyqc1wkjq6h";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ lua5 expat ];
|
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
makeFlagsArray=(
|
|
|
|
LUA_LDIR="$out/share/lua/${lua5.luaversion}"
|
|
|
|
LUA_INC="-I${lua5}/include" LUA_CDIR="$out/lib/lua/${lua5.luaversion}"
|
2015-10-15 12:57:38 +01:00
|
|
|
EXPAT_INC="-I${expat.dev}/include");
|
2014-06-29 23:38:05 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "http://matthewwild.co.uk/projects/luaexpat";
|
2016-08-02 15:50:15 +01:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2014-06-29 23:38:05 +01:00
|
|
|
maintainers = [ stdenv.lib.maintainers.flosse ];
|
|
|
|
};
|
|
|
|
}
|