diff options
author | Luka Blaskovic <lblasc@tvbeat.com> | 2018-02-25 21:12:31 +0000 |
---|---|---|
committer | Jörg Thalheim <joerg@thalheim.io> | 2018-03-09 19:32:28 +0000 |
commit | 13c8e0194d6f3d948332e564a68b275834152c25 (patch) | |
tree | c9df7c17e6b76a3ee109918de2ca5f2d5d9603b9 /pkgs/top-level/lua-packages.nix | |
parent | b86c7469a686bc87e168668abc8e28c0e37e1180 (diff) | |
download | nixlib-13c8e0194d6f3d948332e564a68b275834152c25.tar nixlib-13c8e0194d6f3d948332e564a68b275834152c25.tar.gz nixlib-13c8e0194d6f3d948332e564a68b275834152c25.tar.bz2 nixlib-13c8e0194d6f3d948332e564a68b275834152c25.tar.lz nixlib-13c8e0194d6f3d948332e564a68b275834152c25.tar.xz nixlib-13c8e0194d6f3d948332e564a68b275834152c25.tar.zst nixlib-13c8e0194d6f3d948332e564a68b275834152c25.zip |
luaPackages.bit32: init at 5.3.0
fixes #35581
Diffstat (limited to 'pkgs/top-level/lua-packages.nix')
-rw-r--r-- | pkgs/top-level/lua-packages.nix | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/pkgs/top-level/lua-packages.nix b/pkgs/top-level/lua-packages.nix index b141287b53e9..75f2ab9e5829 100644 --- a/pkgs/top-level/lua-packages.nix +++ b/pkgs/top-level/lua-packages.nix @@ -43,6 +43,35 @@ let inherit lua; }; + bit32 = buildLuaPackage rec { + version = "5.3.0"; + name = "bit32-${version}"; + + src = fetchFromGitHub { + owner = "keplerproject"; + repo = "lua-compat-5.2"; + rev = "bitlib-${version}"; + sha256 = "1ipqlbvb5w394qwhm2f3w6pdrgy8v4q8sps5hh3pqz14dcqwakhj"; + }; + + buildPhase = '' + cc ${if stdenv.isDarwin then "-bundle -undefined dynamic_lookup -all_load" else "-shared"} -Ic-api lbitlib.c -o bit32.so + ''; + + installPhase = '' + mkdir -p $out/lib/lua/${lua.luaversion} + install -p bit32.so $out/lib/lua/${lua.luaversion} + ''; + + meta = with stdenv.lib; { + description = "Lua 5.2 bit manipulation library"; + homepage = "http://www.lua.org/manual/5.2/manual.html#6.7"; + license = licenses.mit; + maintainers = with maintainers; [ lblasc ]; + platforms = platforms.unix; + }; + }; + luabitop = buildLuaPackage rec { version = "1.0.2"; name = "bitop-${version}"; |