ljsyscall: init at 20180515

This commit is contained in:
Luka Blaskovic 2019-08-24 11:41:55 +00:00 committed by Matthieu Coudron
parent 5e2f89bbce
commit 4d11f5dabd
3 changed files with 40 additions and 0 deletions

View File

@ -18,6 +18,7 @@ http,,,,,vcunat
inspect,,,,,
ldoc,,,,,
lgi,,,,,
ljsyscall,,,,lua5_1,lblasc
lpeg,,,,,vyp
lpeg_patterns,,,,,
lpeglabel,,,,,

1 # nix name luarocks name server version luaversion maintainers
18 inspect
19 ldoc
20 lgi
21 ljsyscall lua5_1 lblasc
22 lpeg vyp
23 lpeg_patterns
24 lpeglabel

View File

@ -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";

View File

@ -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