Skip to content

Commit

Permalink
luaPackages.psl: init at 0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperSandro2000 committed May 23, 2024
1 parent d9add34 commit 12a5234
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 0 deletions.
1 change: 1 addition & 0 deletions maintainers/scripts/luarocks-packages.csv
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ nvim-nio,,,,,,mrcjkb
pathlib.nvim,,,,,,
penlight,,,,,,alerque
plenary.nvim,https://raw.githubusercontent.com/nvim-lua/plenary.nvim/master/plenary.nvim-scm-1.rockspec,,,,5.1,
psl,,,,0.3,,
rapidjson,,,,,,
rest.nvim,,,,,5.1,teto
rocks.nvim,,,,,,mrcjkb
Expand Down
21 changes: 21 additions & 0 deletions pkgs/development/lua-modules/generated-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2662,6 +2662,27 @@ buildLuarocksPackage {
};
}) {};

psl = callPackage({ buildLuarocksPackage, fetchurl, fetchzip }:
buildLuarocksPackage {
pname = "psl";
version = "0.3-0";
knownRockspec = (fetchurl {
url = "mirror://luarocks/psl-0.3-0.rockspec";
sha256 = "1x7sc8n780k67v31bvqqxhh6ihy0k91zmp6xcxmkifr0gd008x9z";
}).outPath;
src = fetchzip {
url = "https://github.com/daurnimator/lua-psl/archive/v0.3.zip";
sha256 = "1x9zskjn6fp9343w9314104128ik4lbk98pg6zfhl1v35107m1jx";
};


meta = {
homepage = "https://github.com/daurnimator/lua-psl";
description = "Bindings to libpsl, a C library that handles the Public Suffix List (PSL)";
license.fullName = "MIT";
};
}) {};

rapidjson = callPackage({ buildLuarocksPackage, cmake, fetchFromGitHub, fetchurl, luaOlder }:
buildLuarocksPackage {
pname = "rapidjson";
Expand Down
10 changes: 10 additions & 0 deletions pkgs/development/lua-modules/overrides.nix
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
, libiconv
, libmpack
, libmysqlclient
, libpsl
, libuuid
, libuv
, libxcrypt
Expand Down Expand Up @@ -617,6 +618,15 @@ in
dontPatchShebangs = true;
});

psl = prev.psl.overrideAttrs (drv: {
buildInputs = drv.buildInputs or [ ] ++ [ libpsl ];

luarocksConfig.variables = drv.luarocksConfig.variables // {
PSL_INCDIR = lib.getDev libpsl + "/include";
PSL_DIR = lib.getLib libpsl;
};
});

rapidjson = prev.rapidjson.overrideAttrs (oa: {
preBuild = ''
sed -i '/set(CMAKE_CXX_FLAGS/d' CMakeLists.txt
Expand Down

0 comments on commit 12a5234

Please sign in to comment.