git.iko.soy/typeable/nixpkgs
on master help sign in
luaPackages.luaposix: move to generated
commit2d77d620cea90c166edac625e9548ba140462b15 authorMatthieu Coudron <mattator@gmail.com> dateThu 6 Jun 2019, 14:23 (7 years ago) parent6fe580e
3 files changed+20−34
maintainers/scripts/luarocks-packages.csv+1 pkgs/development/lua-modules/generated-packages.nix+19 pkgs/top-level/lua-packages.nix−34
maintainers/scripts/luarocks-packages.csv+1
@@ -29,6 +29,7 @@ luabitop,,,,,
2929luaevent,,,,,
3030luacheck,,,,,
3131luaffi,,http://luarocks.org/dev,,,
32+luaposix,,,,,vyp lblasc
3233luazip,,,,,
3334luuid,,,,,
3435markdown,,,,,
pkgs/development/lua-modules/generated-packages.nix+19
@@ -633,6 +633,25 @@ luaffi = buildLuarocksPackage {
633633 };
634634 };
635635};
636+luaposix = buildLuarocksPackage {
637+ pname = "luaposix";
638+ version = "34.0.4-1";
639+
640+ src = fetchurl {
641+ url = https://luarocks.org/luaposix-34.0.4-1.src.rock;
642+ sha256 = "0yrm5cn2iyd0zjd4liyj27srphvy0gjrjx572swar6zqr4dwjqp2";
643+ };
644+ disabled = (luaOlder "5.1") || (luaAtLeast "5.4");
645+ propagatedBuildInputs = [ bit32 lua std_normalize ];
646+
647+ meta = {
648+ homepage = "http://github.com/luaposix/luaposix/";
649+ description = "Lua bindings for POSIX";
650+ license = {
651+ fullName = "MIT/X11";
652+ };
653+ };
654+};
636655luazip = buildLuarocksPackage {
637656 pname = "luazip";
638657 version = "1.2.7-1";
pkgs/top-level/lua-packages.nix−34
@@ -345,40 +345,6 @@ with self; {
345345 };
346346 };
347347
348− luaposix = buildLuaPackage rec {
349− name = "posix-${version}";
350− version = "34.0.4";
351−
352− src = fetchFromGitHub {
353− owner = "luaposix";
354− repo = "luaposix";
355− rev = "release-v${version}";
356− sha256 = "0p5583vidsm7s97zihf47c34vscwgbl86axrnj44j328v45kxb2z";
357− };
358−
359− propagatedBuildInputs = [ std_normalize bit32 ];
360−
361− buildPhase = ''
362− ${lua}/bin/lua build-aux/luke \
363− package="luaposix" \
364− version="${version}"
365− '';
366−
367− installPhase = ''
368− ${lua}/bin/lua build-aux/luke install --quiet \
369− INST_LIBDIR="$out/lib/lua/${lua.luaversion}" \
370− INST_LUADIR="$out/share/lua/${lua.luaversion}"
371− '';
372−
373− meta = with stdenv.lib; {
374− description = "Lua bindings for POSIX API";
375− homepage = "https://github.com/luaposix/luaposix";
376− license = licenses.mit;
377− maintainers = with maintainers; [ vyp lblasc ];
378− platforms = platforms.unix;
379− };
380− };
381−
382348 luasec = buildLuaPackage rec {
383349 name = "sec-0.8";
384350