-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
177 additions
and
130 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
|
||
|
||
When updating the rockspec, one can run: | ||
from a nixpkgs checkout: | ||
maintainers/scripts/update-luarocks-packages --input-names ~/luarocks-site/contrib/luarocks-packages.csv --out ~/luarocks-site/contrib/generated-packages.nix --debug DEBUG |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,166 @@ | ||
/* pkgs/development/lua-modules/generated-packages.nix is an auto-generated file -- DO NOT EDIT! | ||
Regenerate it with: | ||
nixpkgs$ ./maintainers/scripts/update-luarocks-packages | ||
You can customize the generated packages in pkgs/development/lua-modules/overrides.nix | ||
*/ | ||
|
||
{ self, stdenv, lib, fetchurl, fetchgit, callPackage, ... } @ args: | ||
final: prev: | ||
{ | ||
date = callPackage({ luaOlder, fetchgit, luaAtLeast, lua, buildLuarocksPackage }: | ||
buildLuarocksPackage { | ||
pname = "date"; | ||
version = "2.2-2"; | ||
knownRockspec = (fetchurl { | ||
url = "mirror://luarocks/date-2.2-2.rockspec"; | ||
sha256 = "0z2gb4rxfrkdx3zlysmlvfpm867fk0yq0bsn7yl789pvgf591l1x"; | ||
}).outPath; | ||
src = fetchgit ( removeAttrs (builtins.fromJSON ''{ | ||
"url": "https://github.com/Tieske/date.git", | ||
"rev": "e309741edc15bde2c884b0db09d8560848773b50", | ||
"date": "2023-06-19T14:52:25+02:00", | ||
"path": "/nix/store/mqai2jv2nligylw4bazrk1cw51q493mr-date", | ||
"sha256": "1s7bz4ivmpyc8mchp4nxm4b1yqf002ryjr30lwdswf64aljlx640", | ||
"hash": "sha256-gJhOJVXEOK4bp2Bk6bMAwGEfFqndkgtZRczfuiP56+g=", | ||
"fetchLFS": false, | ||
"fetchSubmodules": true, | ||
"deepClone": false, | ||
"leaveDotGit": false | ||
} | ||
'') ["date" "path"]) ; | ||
|
||
disabled = (luaOlder "5.0") || (luaAtLeast "5.5"); | ||
propagatedBuildInputs = [ lua ]; | ||
|
||
meta = { | ||
homepage = "https://github.com/Tieske/date"; | ||
description = "Date & Time module for Lua 5.x"; | ||
license.fullName = "MIT"; | ||
}; | ||
}) {}; | ||
|
||
ansicolors = self.callPackage | ||
({ fetchurl, buildLuarocksPackage, lua, luaOlder }: | ||
super.buildLuarocksPackage { | ||
pname = "ansicolors"; | ||
version = "1.0.2-3"; | ||
knownRockspec = (fetchurl { | ||
url = "mirror://luarocks/ansicolors-1.0.2-3.rockspec"; | ||
sha256 = "19y962xdx5ldl3596ywdl7n825dffz9al6j6rx6pbgmhb7pi8s5v"; | ||
}).outPath; | ||
src = fetchurl { | ||
url = "https://github.com/kikito/ansicolors.lua/archive/v1.0.2.tar.gz"; | ||
sha256 = "0r4xi57njldmar9pn77l0vr5701rpmilrm51spv45lz0q9js8xps"; | ||
}; | ||
|
||
disabled = (luaOlder "5.1"); | ||
propagatedBuildInputs = [ lua ]; | ||
|
||
meta = { | ||
homepage = "https://github.com/kikito/ansicolors.lua"; | ||
description = "Library for color Manipulation."; | ||
license.fullName = "MIT <http://opensource.org/licenses/MIT>"; | ||
}; | ||
}) | ||
{ }; | ||
|
||
|
||
lapis = callPackage({ argparse, luaossl, ansicolors, lua-cjson, lua, luasocket, lpeg, fetchgit, buildLuarocksPackage, etlua, date, loadkit, pgmoon }: | ||
buildLuarocksPackage { | ||
pname = "lapis"; | ||
version = "1.14.0-1"; | ||
knownRockspec = (fetchurl { | ||
url = "https://raw.githubusercontent.com/rocks-moonscript-org/moonrocks-mirror/master/lapis-1.14.0-1.rockspec"; | ||
sha256 = "1iax1n4nfk81vlslnb92wnpg03scci7p7983dwvkhk5nan63vnmh"; | ||
}).outPath; | ||
src = fetchgit ( removeAttrs (builtins.fromJSON ''{ | ||
"url": "https://github.com/leafo/lapis.git", | ||
"rev": "fce55fddfafca91b12fcbf21e9ac322ad68fa22e", | ||
"date": "2023-07-20T12:10:03-07:00", | ||
"path": "/nix/store/ggb7qsjbqcj5d6qs31mcllawzgazlk2m-lapis", | ||
"sha256": "0qnz6arsqyr3scsz7zd9a6qwpjha2x6k3ymkk20nm74a2s7v8yz1", | ||
"hash": "sha256-4Xu0jxaKnGqBmLP6MU0XCsrLsVGp/fM10yN7rLMy32I=", | ||
"fetchLFS": false, | ||
"fetchSubmodules": true, | ||
"deepClone": false, | ||
"leaveDotGit": false | ||
} | ||
'') ["date" "path"]) ; | ||
|
||
propagatedBuildInputs = [ ansicolors argparse date etlua loadkit lpeg lua lua-cjson luaossl luasocket pgmoon ]; | ||
|
||
meta = { | ||
homepage = "http://leafo.net/lapis"; | ||
description = "A web framework for MoonScript & Lua"; | ||
license.fullName = "MIT"; | ||
}; | ||
}) {}; | ||
|
||
etlua = self.callPackage ({ lua, buildLuarocksPackage, fetchgit, fetchurl, luaOlder }: | ||
buildLuarocksPackage { | ||
pname = "etlua"; | ||
version = "1.3.0-1"; | ||
knownRockspec = (fetchurl { | ||
url = "mirror://luarocks/etlua-1.3.0-1.rockspec"; | ||
sha256 = "1g98ibp7n2p4js39din2balncjnxxdbaq6msw92z072s2cccx9cf"; | ||
}).outPath; | ||
src = fetchgit ( removeAttrs (builtins.fromJSON ''{ | ||
"url": "https://github.com/leafo/etlua.git", | ||
"rev": "8dda2e5aeb4413446172a562a9a374b700054836", | ||
"date": "2019-08-02T18:07:22-07:00", | ||
"path": "/nix/store/kk7sib6lwra0wyf6yjc8shkny7b5qnm7-etlua", | ||
"sha256": "0ns7vvzslxhx39xwhxzi6cwkk2vcxidxidgysr03sq47h8daspig", | ||
"hash": "sha256-L16tGoKHYD1A1v612FvsbIs5OTPxd8h7Gh12qv/eR1s=", | ||
"fetchLFS": false, | ||
"fetchSubmodules": true, | ||
"deepClone": false, | ||
"leaveDotGit": false | ||
} | ||
'') ["date" "path"]) ; | ||
|
||
disabled = (luaOlder "5.1"); | ||
propagatedBuildInputs = [ lua ]; | ||
|
||
meta = { | ||
homepage = "https://github.com/leafo/etlua"; | ||
description = "Embedded templates for Lua"; | ||
license.fullName = "MIT"; | ||
}; | ||
}) {}; | ||
|
||
pgmoon = callPackage({ lua, luaOlder, buildLuarocksPackage, lpeg, fetchgit }: | ||
buildLuarocksPackage { | ||
pname = "pgmoon"; | ||
version = "1.16.0-1"; | ||
knownRockspec = (fetchurl { | ||
url = "mirror://luarocks/pgmoon-1.16.0-1.rockspec"; | ||
sha256 = "0qibc6pbal0n5p7c0v0rxrc2b3qdkbbz5wpn4nihsv7vkhjaqhx8"; | ||
}).outPath; | ||
src = fetchgit ( removeAttrs (builtins.fromJSON ''{ | ||
"url": "https://github.com/leafo/pgmoon.git", | ||
"rev": "7b7ef2a3f17d32881c61f0fb258d2ee01718942c", | ||
"date": "2022-11-22T14:49:59-08:00", | ||
"path": "/nix/store/jjyf1rij16mlqfx55rrpwadcnn8mf663-pgmoon", | ||
"sha256": "1ifivvkkqwcgp9s9ynlb394973mbhwgs9yvalbyn3170n78msacb", | ||
"hash": "sha256-iyld0bHghGH9omr7pB+Hq46TSBqLWp90uo9xPOfe0cU=", | ||
"fetchLFS": false, | ||
"fetchSubmodules": true, | ||
"deepClone": false, | ||
"leaveDotGit": false | ||
} | ||
'') ["date" "path"]) ; | ||
|
||
disabled = (luaOlder "5.1"); | ||
propagatedBuildInputs = [ lpeg lua ]; | ||
|
||
meta = { | ||
homepage = "https://github.com/leafo/pgmoon"; | ||
description = "Postgres driver for OpenResty and Lua"; | ||
license.fullName = "MIT"; | ||
}; | ||
}) {}; | ||
|
||
|
||
} | ||
/* GENERATED - do not edit this file */ |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
name,src,ref,server,version,luaversion,maintainers | ||
ansicolors,,,,,, | ||
date,,,,,, | ||
lapis,,,,,, | ||
pgmoon,,,,,, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters