mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-12 05:16:25 +03:00
luaPackages.luaunbound: init at 1.0.0-1
Required for Prosody 0.12.0. I first tried to run the bare ./maintainers/scripts/update-luarocks-packages, however it did break a fair share of Lua packages. In the end, I: 1. Added the luaunbound entry to luarocks-packages.csv 2. Run the update-luprocks-packages. 3. Cherry picked the luaunbound entry 4. Reverted the rest of lua-modules/generated-packages.nix to what we currently have in Nixpkgs. 5. Injected the native unbound library via the lua-modules overrides.
This commit is contained in:
parent
5b2aaa628f
commit
811f95f000
3 changed files with 32 additions and 0 deletions
|
@ -64,6 +64,7 @@ luasocket,,,,,,
|
||||||
luasql-sqlite3,,,,,,vyp
|
luasql-sqlite3,,,,,,vyp
|
||||||
luassert,,,,,,
|
luassert,,,,,,
|
||||||
luasystem,,,,,,
|
luasystem,,,,,,
|
||||||
|
luaunbound,,,,,
|
||||||
luautf8,,,,,,pstn
|
luautf8,,,,,,pstn
|
||||||
luazip,,,,,,
|
luazip,,,,,,
|
||||||
lua-yajl,,,,,,pstn
|
lua-yajl,,,,,,pstn
|
||||||
|
|
Can't render this file because it has a wrong number of fields in line 67.
|
|
@ -1944,6 +1944,31 @@ buildLuarocksPackage {
|
||||||
};
|
};
|
||||||
}) {};
|
}) {};
|
||||||
|
|
||||||
|
luaunbound = callPackage({ buildLuarocksPackage, luaOlder, luaAtLeast
|
||||||
|
, fetchurl, lua
|
||||||
|
}:
|
||||||
|
buildLuarocksPackage {
|
||||||
|
pname = "luaunbound";
|
||||||
|
version = "1.0.0-1";
|
||||||
|
knownRockspec = (fetchurl {
|
||||||
|
url = "https://luarocks.org/luaunbound-1.0.0-1.rockspec";
|
||||||
|
sha256 = "1zlkibdwrj5p97nhs33cz8xx0323z3kiq5x7v0h3i7v6j0h8ppvn";
|
||||||
|
}).outPath;
|
||||||
|
src = fetchurl {
|
||||||
|
url = "https://code.zash.se/dl/luaunbound/luaunbound-1.0.0.tar.gz";
|
||||||
|
sha256 = "1lsh0ylp5xskygxl5qdv6mhkm1x8xp0vfd5prk5hxkr19jk5mr3d";
|
||||||
|
};
|
||||||
|
|
||||||
|
disabled = with lua; (luaOlder "5.1") || (luaAtLeast "5.5");
|
||||||
|
propagatedBuildInputs = [ lua ];
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
homepage = "https://www.zash.se/luaunbound.html";
|
||||||
|
description = "A binding to libunbound";
|
||||||
|
license.fullName = "MIT";
|
||||||
|
};
|
||||||
|
}) {};
|
||||||
|
|
||||||
luautf8 = callPackage({ buildLuarocksPackage, luaOlder, luaAtLeast
|
luautf8 = callPackage({ buildLuarocksPackage, luaOlder, luaAtLeast
|
||||||
, fetchurl, lua
|
, fetchurl, lua
|
||||||
}:
|
}:
|
||||||
|
|
|
@ -257,6 +257,12 @@ with prev;
|
||||||
];
|
];
|
||||||
});
|
});
|
||||||
|
|
||||||
|
luaunbound = prev.lib.overrideLuarocks prev.luaunbound(drv: {
|
||||||
|
externalDeps = [
|
||||||
|
{ name = "libunbound"; dep = pkgs.unbound; }
|
||||||
|
];
|
||||||
|
});
|
||||||
|
|
||||||
luuid = (prev.lib.overrideLuarocks prev.luuid (drv: {
|
luuid = (prev.lib.overrideLuarocks prev.luuid (drv: {
|
||||||
externalDeps = [
|
externalDeps = [
|
||||||
{ name = "LIBUUID"; dep = pkgs.libuuid; }
|
{ name = "LIBUUID"; dep = pkgs.libuuid; }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue