mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-09-11 15:08:33 +01:00
lua53Packages.lmpfrlib: init at 20170112-2
This commit is contained in:
parent
ca428a0687
commit
0b13ca520a
|
@ -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,,,,,,
|
||||
|
|
|
|
@ -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
|
||||
}:
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue