lua53Packages.lmpfrlib: init at 20170112-2

This commit is contained in:
Alexander Shpilkin 2022-05-07 11:04:36 +03:00
parent ca428a0687
commit 0b13ca520a
No known key found for this signature in database
GPG Key ID: 55F6F5B75637BD38
3 changed files with 37 additions and 0 deletions

View File

@ -23,6 +23,7 @@ lgi,,,,,,
linenoise,https://github.com/hoelzro/lua-linenoise.git,,,,,
ljsyscall,,,,,lua5_1,lblasc
lmathx,,,,,lua5_3,alexshpilkin
lmpfrlib,,,,,lua5_3,alexshpilkin
lpeg,,,,,,vyp
lpeg_patterns,,,,,,
lpeglabel,,,,,,

1 name src ref server version luaversion maintainers
23 linenoise https://github.com/hoelzro/lua-linenoise.git
24 ljsyscall lua5_1 lblasc
25 lmathx lua5_3 alexshpilkin
26 lmpfrlib lua5_3 alexshpilkin
27 lpeg vyp
28 lpeg_patterns
29 lpeglabel

View File

@ -684,6 +684,32 @@ buildLuarocksPackage {
};
}) {};
lmpfrlib = callPackage({ buildLuarocksPackage, luaOlder, luaAtLeast
, fetchurl, lua
}:
buildLuarocksPackage {
pname = "lmpfrlib";
version = "20170112-2";
knownRockspec = (fetchurl {
url = "https://luarocks.org/lmpfrlib-20170112-2.rockspec";
sha256 = "1x7qiwmk5b9fi87fn7yvivdsis8h9fk9r3ipqiry5ahx72vzdm7d";
}).outPath;
src = fetchurl {
url = "http://www.circuitwizard.de/lmpfrlib/lmpfrlib.c";
sha256 = "00d32cwvk298k3vyrjkdmfjgc69x1fwyks3hs7dqr2514zdhgssm";
};
disabled = with lua; (luaOlder "5.3") || (luaAtLeast "5.5");
propagatedBuildInputs = [ lua ];
meta = {
homepage = "http://www.circuitwizard.de/lmpfrlib/lmpfrlib.html";
description = "Lua API for the GNU MPFR library";
maintainers = with lib.maintainers; [ alexshpilkin ];
license.fullName = "LGPL";
};
}) {};
lpeg = callPackage({ buildLuarocksPackage, luaOlder, luaAtLeast
, fetchurl, lua
}:

View File

@ -161,6 +161,16 @@ with prev;
'';
});
lmpfrlib = prev.lib.overrideLuarocks prev.lmpfrlib (drv: {
externalDeps = [
{ name = "GMP"; dep = pkgs.gmp; }
{ name = "MPFR"; dep = pkgs.mpfr; }
];
unpackPhase = ''
cp $src $(stripHash $src)
'';
});
lrexlib-gnu = prev.lib.overrideLuarocks prev.lrexlib-gnu (drv: {
buildInputs = [
pkgs.gnulib