Skip to content

Commit

Permalink
added README
Browse files Browse the repository at this point in the history
  • Loading branch information
teto committed Aug 1, 2023
1 parent c8e3ecf commit ebca791
Show file tree
Hide file tree
Showing 5 changed files with 177 additions and 130 deletions.
5 changes: 5 additions & 0 deletions contrib/README.md
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
166 changes: 166 additions & 0 deletions contrib/generated-packages.nix
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 */
6 changes: 0 additions & 6 deletions contrib/input.csv

This file was deleted.

5 changes: 5 additions & 0 deletions contrib/luarocks-packages.csv
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,,,,,,
125 changes: 1 addition & 124 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -102,132 +102,9 @@
let
lua =
let
packageOverrides = self: super: rec {
date = self.callPackage ({ buildLuarocksPackage, fetchgit, luaOlder, luaAtLeast, lua }:
buildLuarocksPackage {
pname = "date";
version = "2.2-2";
knownRockspec = (final.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";
};
}) {};

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"]) ;
packageOverrides = prev.callPackage ./contrib/generated-packages.nix {};

disabled = (luaOlder "5.1");
propagatedBuildInputs = [ lua ];

meta = {
homepage = "https://github.com/leafo/etlua";
description = "Embedded templates for Lua";
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>";
};
})
{ };

# ansicolors,
lapis = self.callPackage
({ buildLuarocksPackage, lua-cjson, date, lua, lpeg, etlua, fetchgit, luasocket, luaossl, argparse, pgmoon, loadkit }:
self.buildLuarocksPackage {
pname = "lapis";
version = "1.14.0-1";
knownRockspec = (final.fetchurl {
url = "mirror://luarocks/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";
};
})
{ };

};
in
(prev.lua.override { inherit packageOverrides; self = lua; });
in
Expand Down

0 comments on commit ebca791

Please sign in to comment.