Skip to content

Commit 467de02

Browse files
committed
added README
1 parent c8e3ecf commit 467de02

3 files changed

Lines changed: 116 additions & 5 deletions

File tree

contrib/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
2+
3+
When updating the rockspec, one can run:
4+
from a nixpkgs checkout:
5+
maintainers/scripts/update-luarocks-packages --input-names ~/luarocks-site/contrib/luarocks-packages.csv --out ~/luarocks-site/contrib/generated-packages.nix --debug DEBUG

contrib/generated-packages.nix

Lines changed: 108 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,108 @@
1+
/* pkgs/development/lua-modules/generated-packages.nix is an auto-generated file -- DO NOT EDIT!
2+
Regenerate it with:
3+
nixpkgs$ ./maintainers/scripts/update-luarocks-packages
4+
5+
You can customize the generated packages in pkgs/development/lua-modules/overrides.nix
6+
*/
7+
8+
{ self, stdenv, lib, fetchurl, fetchgit, callPackage, ... } @ args:
9+
final: prev:
10+
{
11+
date = callPackage({ luaOlder, fetchgit, luaAtLeast, lua, buildLuarocksPackage }:
12+
buildLuarocksPackage {
13+
pname = "date";
14+
version = "2.2-2";
15+
knownRockspec = (fetchurl {
16+
url = "mirror://luarocks/date-2.2-2.rockspec";
17+
sha256 = "0z2gb4rxfrkdx3zlysmlvfpm867fk0yq0bsn7yl789pvgf591l1x";
18+
}).outPath;
19+
src = fetchgit ( removeAttrs (builtins.fromJSON ''{
20+
"url": "https://github.com/Tieske/date.git",
21+
"rev": "e309741edc15bde2c884b0db09d8560848773b50",
22+
"date": "2023-06-19T14:52:25+02:00",
23+
"path": "/nix/store/mqai2jv2nligylw4bazrk1cw51q493mr-date",
24+
"sha256": "1s7bz4ivmpyc8mchp4nxm4b1yqf002ryjr30lwdswf64aljlx640",
25+
"hash": "sha256-gJhOJVXEOK4bp2Bk6bMAwGEfFqndkgtZRczfuiP56+g=",
26+
"fetchLFS": false,
27+
"fetchSubmodules": true,
28+
"deepClone": false,
29+
"leaveDotGit": false
30+
}
31+
'') ["date" "path"]) ;
32+
33+
disabled = (luaOlder "5.0") || (luaAtLeast "5.5");
34+
propagatedBuildInputs = [ lua ];
35+
36+
meta = {
37+
homepage = "https://github.com/Tieske/date";
38+
description = "Date & Time module for Lua 5.x";
39+
license.fullName = "MIT";
40+
};
41+
}) {};
42+
43+
lapis = callPackage({ argparse, luaossl, ansicolors, lua-cjson, lua, luasocket, lpeg, fetchgit, buildLuarocksPackage, etlua, date, loadkit, pgmoon }:
44+
buildLuarocksPackage {
45+
pname = "lapis";
46+
version = "1.14.0-1";
47+
knownRockspec = (fetchurl {
48+
url = "https://raw.githubusercontent.com/rocks-moonscript-org/moonrocks-mirror/master/lapis-1.14.0-1.rockspec";
49+
sha256 = "1iax1n4nfk81vlslnb92wnpg03scci7p7983dwvkhk5nan63vnmh";
50+
}).outPath;
51+
src = fetchgit ( removeAttrs (builtins.fromJSON ''{
52+
"url": "https://github.com/leafo/lapis.git",
53+
"rev": "fce55fddfafca91b12fcbf21e9ac322ad68fa22e",
54+
"date": "2023-07-20T12:10:03-07:00",
55+
"path": "/nix/store/ggb7qsjbqcj5d6qs31mcllawzgazlk2m-lapis",
56+
"sha256": "0qnz6arsqyr3scsz7zd9a6qwpjha2x6k3ymkk20nm74a2s7v8yz1",
57+
"hash": "sha256-4Xu0jxaKnGqBmLP6MU0XCsrLsVGp/fM10yN7rLMy32I=",
58+
"fetchLFS": false,
59+
"fetchSubmodules": true,
60+
"deepClone": false,
61+
"leaveDotGit": false
62+
}
63+
'') ["date" "path"]) ;
64+
65+
propagatedBuildInputs = [ ansicolors argparse date etlua loadkit lpeg lua lua-cjson luaossl luasocket pgmoon ];
66+
67+
meta = {
68+
homepage = "http://leafo.net/lapis";
69+
description = "A web framework for MoonScript & Lua";
70+
license.fullName = "MIT";
71+
};
72+
}) {};
73+
74+
pgmoon = callPackage({ lua, luaOlder, buildLuarocksPackage, lpeg, fetchgit }:
75+
buildLuarocksPackage {
76+
pname = "pgmoon";
77+
version = "1.16.0-1";
78+
knownRockspec = (fetchurl {
79+
url = "mirror://luarocks/pgmoon-1.16.0-1.rockspec";
80+
sha256 = "0qibc6pbal0n5p7c0v0rxrc2b3qdkbbz5wpn4nihsv7vkhjaqhx8";
81+
}).outPath;
82+
src = fetchgit ( removeAttrs (builtins.fromJSON ''{
83+
"url": "https://github.com/leafo/pgmoon.git",
84+
"rev": "7b7ef2a3f17d32881c61f0fb258d2ee01718942c",
85+
"date": "2022-11-22T14:49:59-08:00",
86+
"path": "/nix/store/jjyf1rij16mlqfx55rrpwadcnn8mf663-pgmoon",
87+
"sha256": "1ifivvkkqwcgp9s9ynlb394973mbhwgs9yvalbyn3170n78msacb",
88+
"hash": "sha256-iyld0bHghGH9omr7pB+Hq46TSBqLWp90uo9xPOfe0cU=",
89+
"fetchLFS": false,
90+
"fetchSubmodules": true,
91+
"deepClone": false,
92+
"leaveDotGit": false
93+
}
94+
'') ["date" "path"]) ;
95+
96+
disabled = (luaOlder "5.1");
97+
propagatedBuildInputs = [ lpeg lua ];
98+
99+
meta = {
100+
homepage = "https://github.com/leafo/pgmoon";
101+
description = "Postgres driver for OpenResty and Lua";
102+
license.fullName = "MIT";
103+
};
104+
}) {};
105+
106+
107+
}
108+
/* GENERATED - do not edit this file */
Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
name,src,ref,server,version,luaversion,maintainers
2-
pgmoon,
3-
lapis
4-
etlua
5-
date
6-
2+
pgmoon,,,,,,
3+
lapis,,,,,,
4+
date,,,,,,

0 commit comments

Comments
 (0)