Skip to content

Commit ebca791

Browse files
committed
added README
1 parent c8e3ecf commit ebca791

5 files changed

Lines changed: 177 additions & 130 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: 166 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,166 @@
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+
ansicolors = self.callPackage
44+
({ fetchurl, buildLuarocksPackage, lua, luaOlder }:
45+
super.buildLuarocksPackage {
46+
pname = "ansicolors";
47+
version = "1.0.2-3";
48+
knownRockspec = (fetchurl {
49+
url = "mirror://luarocks/ansicolors-1.0.2-3.rockspec";
50+
sha256 = "19y962xdx5ldl3596ywdl7n825dffz9al6j6rx6pbgmhb7pi8s5v";
51+
}).outPath;
52+
src = fetchurl {
53+
url = "https://github.com/kikito/ansicolors.lua/archive/v1.0.2.tar.gz";
54+
sha256 = "0r4xi57njldmar9pn77l0vr5701rpmilrm51spv45lz0q9js8xps";
55+
};
56+
57+
disabled = (luaOlder "5.1");
58+
propagatedBuildInputs = [ lua ];
59+
60+
meta = {
61+
homepage = "https://github.com/kikito/ansicolors.lua";
62+
description = "Library for color Manipulation.";
63+
license.fullName = "MIT <http://opensource.org/licenses/MIT>";
64+
};
65+
})
66+
{ };
67+
68+
69+
lapis = callPackage({ argparse, luaossl, ansicolors, lua-cjson, lua, luasocket, lpeg, fetchgit, buildLuarocksPackage, etlua, date, loadkit, pgmoon }:
70+
buildLuarocksPackage {
71+
pname = "lapis";
72+
version = "1.14.0-1";
73+
knownRockspec = (fetchurl {
74+
url = "https://raw.githubusercontent.com/rocks-moonscript-org/moonrocks-mirror/master/lapis-1.14.0-1.rockspec";
75+
sha256 = "1iax1n4nfk81vlslnb92wnpg03scci7p7983dwvkhk5nan63vnmh";
76+
}).outPath;
77+
src = fetchgit ( removeAttrs (builtins.fromJSON ''{
78+
"url": "https://github.com/leafo/lapis.git",
79+
"rev": "fce55fddfafca91b12fcbf21e9ac322ad68fa22e",
80+
"date": "2023-07-20T12:10:03-07:00",
81+
"path": "/nix/store/ggb7qsjbqcj5d6qs31mcllawzgazlk2m-lapis",
82+
"sha256": "0qnz6arsqyr3scsz7zd9a6qwpjha2x6k3ymkk20nm74a2s7v8yz1",
83+
"hash": "sha256-4Xu0jxaKnGqBmLP6MU0XCsrLsVGp/fM10yN7rLMy32I=",
84+
"fetchLFS": false,
85+
"fetchSubmodules": true,
86+
"deepClone": false,
87+
"leaveDotGit": false
88+
}
89+
'') ["date" "path"]) ;
90+
91+
propagatedBuildInputs = [ ansicolors argparse date etlua loadkit lpeg lua lua-cjson luaossl luasocket pgmoon ];
92+
93+
meta = {
94+
homepage = "http://leafo.net/lapis";
95+
description = "A web framework for MoonScript & Lua";
96+
license.fullName = "MIT";
97+
};
98+
}) {};
99+
100+
etlua = self.callPackage ({ lua, buildLuarocksPackage, fetchgit, fetchurl, luaOlder }:
101+
buildLuarocksPackage {
102+
pname = "etlua";
103+
version = "1.3.0-1";
104+
knownRockspec = (fetchurl {
105+
url = "mirror://luarocks/etlua-1.3.0-1.rockspec";
106+
sha256 = "1g98ibp7n2p4js39din2balncjnxxdbaq6msw92z072s2cccx9cf";
107+
}).outPath;
108+
src = fetchgit ( removeAttrs (builtins.fromJSON ''{
109+
"url": "https://github.com/leafo/etlua.git",
110+
"rev": "8dda2e5aeb4413446172a562a9a374b700054836",
111+
"date": "2019-08-02T18:07:22-07:00",
112+
"path": "/nix/store/kk7sib6lwra0wyf6yjc8shkny7b5qnm7-etlua",
113+
"sha256": "0ns7vvzslxhx39xwhxzi6cwkk2vcxidxidgysr03sq47h8daspig",
114+
"hash": "sha256-L16tGoKHYD1A1v612FvsbIs5OTPxd8h7Gh12qv/eR1s=",
115+
"fetchLFS": false,
116+
"fetchSubmodules": true,
117+
"deepClone": false,
118+
"leaveDotGit": false
119+
}
120+
'') ["date" "path"]) ;
121+
122+
disabled = (luaOlder "5.1");
123+
propagatedBuildInputs = [ lua ];
124+
125+
meta = {
126+
homepage = "https://github.com/leafo/etlua";
127+
description = "Embedded templates for Lua";
128+
license.fullName = "MIT";
129+
};
130+
}) {};
131+
132+
pgmoon = callPackage({ lua, luaOlder, buildLuarocksPackage, lpeg, fetchgit }:
133+
buildLuarocksPackage {
134+
pname = "pgmoon";
135+
version = "1.16.0-1";
136+
knownRockspec = (fetchurl {
137+
url = "mirror://luarocks/pgmoon-1.16.0-1.rockspec";
138+
sha256 = "0qibc6pbal0n5p7c0v0rxrc2b3qdkbbz5wpn4nihsv7vkhjaqhx8";
139+
}).outPath;
140+
src = fetchgit ( removeAttrs (builtins.fromJSON ''{
141+
"url": "https://github.com/leafo/pgmoon.git",
142+
"rev": "7b7ef2a3f17d32881c61f0fb258d2ee01718942c",
143+
"date": "2022-11-22T14:49:59-08:00",
144+
"path": "/nix/store/jjyf1rij16mlqfx55rrpwadcnn8mf663-pgmoon",
145+
"sha256": "1ifivvkkqwcgp9s9ynlb394973mbhwgs9yvalbyn3170n78msacb",
146+
"hash": "sha256-iyld0bHghGH9omr7pB+Hq46TSBqLWp90uo9xPOfe0cU=",
147+
"fetchLFS": false,
148+
"fetchSubmodules": true,
149+
"deepClone": false,
150+
"leaveDotGit": false
151+
}
152+
'') ["date" "path"]) ;
153+
154+
disabled = (luaOlder "5.1");
155+
propagatedBuildInputs = [ lpeg lua ];
156+
157+
meta = {
158+
homepage = "https://github.com/leafo/pgmoon";
159+
description = "Postgres driver for OpenResty and Lua";
160+
license.fullName = "MIT";
161+
};
162+
}) {};
163+
164+
165+
}
166+
/* GENERATED - do not edit this file */

contrib/input.csv

Lines changed: 0 additions & 6 deletions
This file was deleted.

contrib/luarocks-packages.csv

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
name,src,ref,server,version,luaversion,maintainers
2+
ansicolors,,,,,,
3+
date,,,,,,
4+
lapis,,,,,,
5+
pgmoon,,,,,,

flake.nix

Lines changed: 1 addition & 124 deletions
Original file line numberDiff line numberDiff line change
@@ -102,132 +102,9 @@
102102
let
103103
lua =
104104
let
105-
packageOverrides = self: super: rec {
106-
date = self.callPackage ({ buildLuarocksPackage, fetchgit, luaOlder, luaAtLeast, lua }:
107-
buildLuarocksPackage {
108-
pname = "date";
109-
version = "2.2-2";
110-
knownRockspec = (final.fetchurl {
111-
url = "mirror://luarocks/date-2.2-2.rockspec";
112-
sha256 = "0z2gb4rxfrkdx3zlysmlvfpm867fk0yq0bsn7yl789pvgf591l1x";
113-
}).outPath;
114-
src = fetchgit ( removeAttrs (builtins.fromJSON ''{
115-
"url": "https://github.com/Tieske/date.git",
116-
"rev": "e309741edc15bde2c884b0db09d8560848773b50",
117-
"date": "2023-06-19T14:52:25+02:00",
118-
"path": "/nix/store/mqai2jv2nligylw4bazrk1cw51q493mr-date",
119-
"sha256": "1s7bz4ivmpyc8mchp4nxm4b1yqf002ryjr30lwdswf64aljlx640",
120-
"hash": "sha256-gJhOJVXEOK4bp2Bk6bMAwGEfFqndkgtZRczfuiP56+g=",
121-
"fetchLFS": false,
122-
"fetchSubmodules": true,
123-
"deepClone": false,
124-
"leaveDotGit": false
125-
}
126-
'') ["date" "path"]) ;
127-
128-
disabled = (luaOlder "5.0") || (luaAtLeast "5.5");
129-
propagatedBuildInputs = [ lua ];
130-
131-
meta = {
132-
homepage = "https://github.com/Tieske/date";
133-
description = "Date & Time module for Lua 5.x";
134-
license.fullName = "MIT";
135-
};
136-
}) {};
137-
138-
etlua = self.callPackage ({ lua, buildLuarocksPackage, fetchgit, fetchurl, luaOlder }:
139-
buildLuarocksPackage {
140-
pname = "etlua";
141-
version = "1.3.0-1";
142-
knownRockspec = (fetchurl {
143-
url = "mirror://luarocks/etlua-1.3.0-1.rockspec";
144-
sha256 = "1g98ibp7n2p4js39din2balncjnxxdbaq6msw92z072s2cccx9cf";
145-
}).outPath;
146-
src = fetchgit ( removeAttrs (builtins.fromJSON ''{
147-
"url": "https://github.com/leafo/etlua.git",
148-
"rev": "8dda2e5aeb4413446172a562a9a374b700054836",
149-
"date": "2019-08-02T18:07:22-07:00",
150-
"path": "/nix/store/kk7sib6lwra0wyf6yjc8shkny7b5qnm7-etlua",
151-
"sha256": "0ns7vvzslxhx39xwhxzi6cwkk2vcxidxidgysr03sq47h8daspig",
152-
"hash": "sha256-L16tGoKHYD1A1v612FvsbIs5OTPxd8h7Gh12qv/eR1s=",
153-
"fetchLFS": false,
154-
"fetchSubmodules": true,
155-
"deepClone": false,
156-
"leaveDotGit": false
157-
}
158-
'') ["date" "path"]) ;
105+
packageOverrides = prev.callPackage ./contrib/generated-packages.nix {};
159106

160-
disabled = (luaOlder "5.1");
161-
propagatedBuildInputs = [ lua ];
162107

163-
meta = {
164-
homepage = "https://github.com/leafo/etlua";
165-
description = "Embedded templates for Lua";
166-
license.fullName = "MIT";
167-
};
168-
}) {};
169-
170-
ansicolors = self.callPackage
171-
({ fetchurl, buildLuarocksPackage, lua, luaOlder }:
172-
super.buildLuarocksPackage {
173-
pname = "ansicolors";
174-
version = "1.0.2-3";
175-
knownRockspec = (fetchurl {
176-
url = "mirror://luarocks/ansicolors-1.0.2-3.rockspec";
177-
sha256 = "19y962xdx5ldl3596ywdl7n825dffz9al6j6rx6pbgmhb7pi8s5v";
178-
}).outPath;
179-
src = fetchurl {
180-
url = "https://github.com/kikito/ansicolors.lua/archive/v1.0.2.tar.gz";
181-
sha256 = "0r4xi57njldmar9pn77l0vr5701rpmilrm51spv45lz0q9js8xps";
182-
};
183-
184-
disabled = (luaOlder "5.1");
185-
propagatedBuildInputs = [ lua ];
186-
187-
meta = {
188-
homepage = "https://github.com/kikito/ansicolors.lua";
189-
description = "Library for color Manipulation.";
190-
license.fullName = "MIT <http://opensource.org/licenses/MIT>";
191-
};
192-
})
193-
{ };
194-
195-
# ansicolors,
196-
lapis = self.callPackage
197-
({ buildLuarocksPackage, lua-cjson, date, lua, lpeg, etlua, fetchgit, luasocket, luaossl, argparse, pgmoon, loadkit }:
198-
self.buildLuarocksPackage {
199-
pname = "lapis";
200-
version = "1.14.0-1";
201-
knownRockspec = (final.fetchurl {
202-
url = "mirror://luarocks/lapis-1.14.0-1.rockspec";
203-
sha256 = "1iax1n4nfk81vlslnb92wnpg03scci7p7983dwvkhk5nan63vnmh";
204-
}).outPath;
205-
src = fetchgit (removeAttrs
206-
(builtins.fromJSON ''{
207-
"url": "https://github.com/leafo/lapis.git",
208-
"rev": "fce55fddfafca91b12fcbf21e9ac322ad68fa22e",
209-
"date": "2023-07-20T12:10:03-07:00",
210-
"path": "/nix/store/ggb7qsjbqcj5d6qs31mcllawzgazlk2m-lapis",
211-
"sha256": "0qnz6arsqyr3scsz7zd9a6qwpjha2x6k3ymkk20nm74a2s7v8yz1",
212-
"hash": "sha256-4Xu0jxaKnGqBmLP6MU0XCsrLsVGp/fM10yN7rLMy32I=",
213-
"fetchLFS": false,
214-
"fetchSubmodules": true,
215-
"deepClone": false,
216-
"leaveDotGit": false
217-
}
218-
'') [ "date" "path" ]);
219-
220-
propagatedBuildInputs = [ ansicolors argparse date etlua loadkit lpeg lua lua-cjson luaossl luasocket pgmoon ];
221-
222-
meta = {
223-
homepage = "http://leafo.net/lapis";
224-
description = "A web framework for MoonScript & Lua";
225-
license.fullName = "MIT";
226-
};
227-
})
228-
{ };
229-
230-
};
231108
in
232109
(prev.lua.override { inherit packageOverrides; self = lua; });
233110
in

0 commit comments

Comments
 (0)