luaPackages.mpack: removed duplicate manual package

This commit is contained in:
Matthieu Coudron
2019-06-06 14:39:14 +09:00
parent 8b3d0b00d5
commit 6fe580e30b
3 changed files with 9 additions and 41 deletions
-38
View File
@@ -620,44 +620,6 @@ with self; {
};
};
mpack = buildLuaPackage rec {
name = "mpack-${version}";
version = "1.0.7";
src = fetchFromGitHub {
owner = "libmpack";
repo = "libmpack-lua";
rev = version;
sha256 = "0l4k7qmwaa0zpxrlp27yp4pbbyiz3zgxywkm543q6wkzn6wmq8l8";
};
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ libmpack ];
dontBuild = true;
postPatch = stdenv.lib.optionalString stdenv.isDarwin ''
substituteInPlace Makefile \
--replace '-shared' '-bundle -undefined dynamic_lookup -all_load'
'';
installFlags = [
"USE_SYSTEM_LUA=yes"
"USE_SYSTEM_MPACK=yes"
"MPACK_LUA_VERSION=${lua.version}"
"LUA_CMOD_INSTALLDIR=$(out)/lib/lua/${lua.luaversion}"
];
hardeningDisable = [ "fortify" ];
meta = with stdenv.lib; {
description = "Lua bindings for libmpack";
homepage = "https://github.com/libmpack/libmpack-lua";
license = licenses.mit;
maintainers = with maintainers; [ vyp ];
platforms = with platforms; linux ++ darwin;
};
};
vicious = toLuaModule(stdenv.mkDerivation rec {
name = "vicious-${version}";
version = "2.3.1";