2014-09-09 20:24:15 +01:00
|
|
|
{ stdenv, fetchurl, lua5, openssl }:
|
2014-07-01 12:05:29 +01:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
|
2016-04-05 17:44:30 +01:00
|
|
|
hardeningDisable = stdenv.lib.optional stdenv.isi686 "stackprotector";
|
|
|
|
|
2014-07-01 12:05:29 +01:00
|
|
|
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";
|
2016-08-02 15:50:15 +01:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2014-07-01 12:05:29 +01:00
|
|
|
maintainers = [ stdenv.lib.maintainers.flosse ];
|
|
|
|
};
|
|
|
|
}
|