luaPackages.basexx: move to generated

This commit is contained in:
Matthieu Coudron 2019-02-06 00:37:09 +09:00
parent 582fa48e6f
commit 84d4faf8d5
3 changed files with 21 additions and 26 deletions

View File

@ -1,5 +1,6 @@
ansicolors,
argparse,
basexx,
dkjson
fifo
inspect

1 ansicolors,
2 argparse,
3 basexx,
4 dkjson
5 fifo
6 inspect

View File

@ -50,6 +50,26 @@ argparse = buildLuarocksPackage {
};
};
};
basexx = buildLuarocksPackage {
pname = "basexx";
version = "0.4.0-1";
src = fetchurl {
url = https://luarocks.org/basexx-0.4.0-1.src.rock;
sha256 = "1px8yrxg1qkk3kzdqj3siry742jdv4ysp2dmicxi15mkynqpjlzz";
};
disabled = ( luaOlder "5.1");
propagatedBuildInputs = [lua ];
buildType="builtin";
meta = {
homepage = "https://github.com/aiq/basexx";
description="A base2, base16, base32, base64 and base85 library for Lua";
license = {
fullName = "MIT";
};
};
};
dkjson = buildLuarocksPackage {
pname = "dkjson";
version = "2.5-2";

View File

@ -100,32 +100,6 @@ with self; {
luarocks-nix = callPackage ../development/tools/misc/luarocks/luarocks-nix.nix { };
basexx = buildLuaPackage rec {
version = "0.4.0";
name = "basexx-${version}";
src = fetchFromGitHub {
owner = "aiq";
repo = "basexx";
rev = "v${version}";
sha256 = "12y0ng9bp5b98iax35pnp0kc0mb42spv1cbywvfq6amik6l0ya7g";
};
buildPhase = ":";
installPhase = ''
install -Dt "$out/lib/lua/${lua.luaversion}/" \
lib/basexx.lua
'';
meta = with stdenv.lib; {
description = "Lua library for base2, base16, base32, base64, base85";
homepage = "https://github.com/aiq/basexx";
license = licenses.mit;
maintainers = with maintainers; [ vcunat ];
platforms = platforms.all;
};
};
bit32 = buildLuaPackage rec {
version = "5.3.0";
name = "bit32-${version}";