ljsyscall: init at 20180515
This commit is contained in:
parent
5e2f89bbce
commit
4d11f5dabd
@ -18,6 +18,7 @@ http,,,,,vcunat
|
||||
inspect,,,,,
|
||||
ldoc,,,,,
|
||||
lgi,,,,,
|
||||
ljsyscall,,,,lua5_1,lblasc
|
||||
lpeg,,,,,vyp
|
||||
lpeg_patterns,,,,,
|
||||
lpeglabel,,,,,
|
||||
|
|
@ -412,6 +412,26 @@ lgi = buildLuarocksPackage {
|
||||
};
|
||||
};
|
||||
};
|
||||
ljsyscall = buildLuarocksPackage {
|
||||
pname = "ljsyscall";
|
||||
version = "0.12-1";
|
||||
|
||||
src = fetchurl {
|
||||
url = https://luarocks.org/ljsyscall-0.12-1.src.rock;
|
||||
sha256 = "12gs81lnzpxi5d409lbrvjfflld5l2xsdkfhkz93xg7v65sfhh2j";
|
||||
};
|
||||
disabled = (lua.luaversion != "5.1");
|
||||
propagatedBuildInputs = [ lua ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = "http://www.myriabit.com/ljsyscall/";
|
||||
description = "LuaJIT Linux syscall FFI";
|
||||
maintainers = with maintainers; [ lblasc ];
|
||||
license = {
|
||||
fullName = "MIT";
|
||||
};
|
||||
};
|
||||
};
|
||||
lpeg = buildLuarocksPackage {
|
||||
pname = "lpeg";
|
||||
version = "1.0.2-1";
|
||||
|
@ -80,6 +80,25 @@ with super;
|
||||
*/
|
||||
});
|
||||
|
||||
ljsyscall = super.ljsyscall.override(rec {
|
||||
version = "unstable-20180515";
|
||||
# package hasn't seen any release for a long time
|
||||
src = pkgs.fetchFromGitHub {
|
||||
owner = "justincormack";
|
||||
repo = "ljsyscall";
|
||||
rev = "e587f8c55aad3955dddab3a4fa6c1968037b5c6e";
|
||||
sha256 = "06v52agqyziwnbp2my3r7liv245ddmb217zmyqakh0ldjdsr8lz4";
|
||||
};
|
||||
knownRockspec = "rockspec/ljsyscall-scm-1.rockspec";
|
||||
# actually library works fine with lua 5.2
|
||||
preConfigure = ''
|
||||
sed -i 's/lua == 5.1/lua >= 5.1, < 5.3/' ${knownRockspec}
|
||||
'';
|
||||
disabled = luaOlder "5.1" || luaAtLeast "5.3";
|
||||
|
||||
propagatedBuildInputs = with pkgs.lib; optional (!isLuaJIT) luaffi;
|
||||
});
|
||||
|
||||
lgi = super.lgi.override({
|
||||
nativeBuildInputs = [
|
||||
pkgs.pkgconfig
|
||||
|
Loading…
Reference in New Issue
Block a user