3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #212327 from aanderse/luaPackages.lualdap

luaPackages.lualdap: init at 1.3.0-1
This commit is contained in:
Weijia Wang 2023-01-24 06:12:06 +01:00 committed by GitHub
commit 3cfdad8414
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 42 additions and 0 deletions

View file

@ -65,6 +65,7 @@ luaevent,,,,,,
luaexpat,,,,1.4.1-1,,arobyn flosse
luaffi,,,http://luarocks.org/dev,,,
luafilesystem,,,,1.8.0-1,,flosse
lualdap,,,,,,aanderse
lualogging,,,,,,
luaossl,,,,,5.1,
luaposix,,,,34.1.1-1,,vyp lblasc

1 name src ref server version luaversion maintainers
65 luaexpat 1.4.1-1 arobyn flosse
66 luaffi http://luarocks.org/dev
67 luafilesystem 1.8.0-1 flosse
68 lualdap aanderse
69 lualogging
70 luaossl 5.1
71 luaposix 34.1.1-1 vyp lblasc

View file

@ -2019,6 +2019,40 @@ buildLuarocksPackage {
};
}) {};
lualdap = callPackage({ buildLuarocksPackage, luaOlder, luaAtLeast
, fetchgit, lua
}:
buildLuarocksPackage {
pname = "lualdap";
version = "1.3.0-1";
knownRockspec = (fetchurl {
url = "mirror://luarocks/lualdap-1.3.0-1.rockspec";
sha256 = "0b51sm0fz4kiim20w538v31k9g20wq3msxdkh17drkr60ab25sc8";
}).outPath;
src = fetchgit ( removeAttrs (builtins.fromJSON ''{
"url": "https://github.com/lualdap/lualdap",
"rev": "be380f5d98f779c813a4fb4ae1400262366fc8d4",
"date": "2021-06-05T15:49:42+02:00",
"path": "/nix/store/99sy73yz6sidqhkl0kwdsd7r853aw38n-lualdap",
"sha256": "133d8br5f24z03ni38m0czrqfz0mr0ksdrc1g73rawpmiqarpps8",
"fetchLFS": false,
"fetchSubmodules": true,
"deepClone": false,
"leaveDotGit": false
}
'') ["date" "path"]) ;
disabled = with lua; (luaOlder "5.1");
propagatedBuildInputs = [ lua ];
meta = {
homepage = "https://lualdap.github.io/lualdap/";
description = "A Lua interface to the OpenLDAP library";
maintainers = with lib.maintainers; [ aanderse ];
license.fullName = "MIT";
};
}) {};
lualogging = callPackage({ buildLuarocksPackage, luaOlder, luaAtLeast
, fetchgit, luasocket
}:

View file

@ -27,6 +27,7 @@
, mariadb
, mpfr
, neovim-unwrapped
, openldap
, openssl
, pcre
, pkg-config
@ -329,6 +330,12 @@ with prev;
disabled = luaOlder "5.1" || luaAtLeast "5.4" || isLuaJIT;
});
lualdap = prev.luaLib.overrideLuarocks prev.lualdap (drv: {
externalDeps = [
{ name = "LDAP"; dep = openldap; }
];
});
luaossl = prev.luaLib.overrideLuarocks prev.luaossl (drv: {
externalDeps = [
{ name = "CRYPTO"; dep = openssl; }