mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-25 04:12:44 +03:00
lua5_{sec,1_sockets,expat}: convert to aliases
There's nothing better in these expressions than what we have in lua-packages.nix
This commit is contained in:
parent
de48ca0466
commit
9ad1aaae53
@ -1,26 +0,0 @@
|
||||
{ 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}"
|
||||
EXPAT_INC="-I${expat.dev}/include");
|
||||
'';
|
||||
|
||||
meta = {
|
||||
homepage = "http://matthewwild.co.uk/projects/luaexpat";
|
||||
platforms = stdenv.lib.platforms.linux;
|
||||
maintainers = [ stdenv.lib.maintainers.flosse ];
|
||||
};
|
||||
}
|
@ -1,29 +0,0 @@
|
||||
{ stdenv, fetchurl, lua5, openssl }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
version = "0.5";
|
||||
name = "lua-sec-${version}";
|
||||
src = fetchurl {
|
||||
url = "https://github.com/brunoos/luasec/archive/luasec-${version}.tar.gz";
|
||||
sha256 = "08rm12cr1gjdnbv2jpk7xykby9l292qmz2v0dfdlgb4jfj7mk034";
|
||||
};
|
||||
|
||||
buildInputs = [ lua5 openssl ];
|
||||
|
||||
hardeningDisable = stdenv.lib.optional stdenv.isi686 "stackprotector";
|
||||
|
||||
preBuild = ''
|
||||
makeFlagsArray=(
|
||||
linux
|
||||
LUAPATH="$out/lib/lua/${lua5.luaversion}"
|
||||
LUACPATH="$out/lib/lua/${lua5.luaversion}"
|
||||
INC_PATH="-I${lua5}/include"
|
||||
LIB_PATH="-L$out/lib");
|
||||
'';
|
||||
|
||||
meta = {
|
||||
homepage = "https://github.com/brunoos/luasec";
|
||||
platforms = stdenv.lib.platforms.linux;
|
||||
maintainers = [ stdenv.lib.maintainers.flosse ];
|
||||
};
|
||||
}
|
@ -82,6 +82,9 @@ doNotDisplayTwice rec {
|
||||
links = links2; # added 2016-01-31
|
||||
lttngTools = lttng-tools; # added 2014-07-31
|
||||
lttngUst = lttng-ust; # added 2014-07-31
|
||||
lua5_sec = luaPackages.luasec; # added 2017-05-02
|
||||
lua5_1_sockets = lua51Packages.luasocket; # added 2017-05-02
|
||||
lua5_expat = luaPackages.luaexpat; # added 2017-05-02
|
||||
m3d-linux = m33-linux; # added 2016-08-13
|
||||
manpages = man-pages; # added 2015-12-06
|
||||
man_db = man-db; # added 2016-05
|
||||
|
@ -5970,11 +5970,6 @@ with pkgs;
|
||||
|
||||
luaPackages = lua52Packages;
|
||||
|
||||
lua5_1_sockets = lua51Packages.luasocket;
|
||||
|
||||
lua5_expat = callPackage ../development/interpreters/lua-5/expat.nix {};
|
||||
lua5_sec = callPackage ../development/interpreters/lua-5/sec.nix { };
|
||||
|
||||
luajit = callPackage ../development/interpreters/luajit {};
|
||||
|
||||
luarocks = luaPackages.luarocks;
|
||||
|
Loading…
Reference in New Issue
Block a user