Commit Graph

21 Commits

Author SHA1 Message Date
Matthieu Coudron
253af9151f luaPackages: update
- luarocks-nix: bumped to pass args too, `package_X = callPackage ...`.
  It allows to remove the annoying `with self`.
  This new version disables tests (because broken) and now emits derivation
  with a callPackage in front.
- replaced X.override with lib.overrideLuarocks, it should be used
whenever buildInputs/extraVariables is changed since it impacts the
generated luarocks config.
Once structured attributes are in, it will be easier to have the
luarocks config generated by a hook and we probably will be able to
replace all overrideLuarocks by overrideAttrs.
2021-10-18 19:48:07 +02:00
Matthieu Coudron
e62a0eac8f buildLuarocksPackage: cleanup 2021-08-31 22:16:28 +02:00
Matthieu Coudron
15e5c92495 luaPackages: update 2021-08-31 00:07:28 +02:00
Matthieu Coudron
7292ed91df update-luarocks-packages: use the current nixpkgs
restore the behavior of the previous updater that was using the current revision of nixpkgs instead of an outer one
2021-08-29 19:39:42 +02:00
Matthieu Coudron
fadfb4715b update-luarocks-package: fix issue with cache
Cache was not initialized properly
2021-08-13 00:08:44 +02:00
Matthieu Coudron
8ddad244ea update-luarocks-packages: use pluginupdate.py
Cleans up the common interface between the updaters.
Restores the ability to regen the lua packages in parallel.
2021-08-12 01:14:58 +02:00
Matthieu Coudron
560a4e4e08 update-luarocks-packages: use pluginupdate.py
Trying to reuse the update scripts used by kakoune/vim to provide the
user with an unified convergence. Some stuff doesn't work yet (parallel
download, caching) but I (anyone else welcome to try too) will improve
it in other PRs.
2021-08-09 21:37:56 +02:00
Matthieu Coudron
594a143e0e lua: normalize package name 2021-07-30 00:32:15 +02:00
Matthieu Coudron
b20b9f98b8 luarocks-update-packages: pass "lib" in arguments 2021-01-23 00:39:01 +01:00
Matthieu Coudron
27c88c51e7 update-luarocks-packages: disable by default
Not only the binary `parallel` displays a re,inder to quote their
software but it systematically breaks update here regardless of my
network quality.
Better be slow than fail. If anyone can fix it, we may rollback this.
2020-01-25 19:39:28 +01:00
Matthieu Coudron
89c3c1cb42 update-luarocks-packages: reference only 1 server
we now pass a configuration file when calling luarocks to prevent
impurities.
2019-09-07 19:59:09 +09:00
Alexei Robyn
671e53af67 update-luarocks: Use containing nixpkgs, ensure Lua drvs exist 2019-06-14 15:17:52 +10:00
Alexei Robyn
46c6b27633 update-luarocks: Several improvements
Changes:
- Fetches rocks and builds Nix expressions for them in parallel
- Passes 'maintainers' list to luarocks-nix
- Constructs the luarocks argument list more cleanly, by using an
  indexed array
- Made indentation consistent
2019-06-13 20:00:00 +10:00
Matthieu Coudron
6402fbb6b8 update-luarocks: can install for a different lua
the recent luarocks can install for a different interpreter than the one
running luarocks.
Due to the way the update is done on nix, it seems more practical to use
this feature than running the script with different luarocks-nix ?
2019-06-04 18:57:42 +09:00
Matthieu Coudron
e967121053 update-luarocks: contact only the specified server
use --server-only instead of --server, I haven't run any testing but it
should be a bit faster as well as more deterministic.
2019-06-04 18:57:42 +09:00
Matthieu Coudron
cf45c7857a update-luarocks: doesn't crash when no arguments
define print_help function before it gets called.
2019-06-04 18:57:42 +09:00
Will Dietz
c37b3ab888 update-luarocks-packages: simplify server var, whitespace fixup 2019-04-28 10:08:56 -05:00
Matthieu Coudron
f84594c7d7 update-luarocks-package: fix version pinning 2019-04-14 16:38:23 +09:00
Matthieu Coudron
68a72f1a47 luarocks-nix: bump to match luarocks
Also made changes to lua package generation system to account for packages like cqueues
that have one version per lua interpreter.
The csv file also accepts comments now.
2019-03-07 17:43:07 +09:00
Will Dietz
e49175ceae udpate-luarocks-package: drop 'lua' argument here as well 2019-02-25 23:53:21 -06:00
Matthieu Coudron
2ba891788b Lua generate nix packages from luarocks (#54978)
* lua: generate packages from luarocks

* luarocks-nix: update

* removed packages already available in nixpkgs

* adressing reviews

update script can now accept another csv file as input with -c

* Remove obsolete comment
2019-02-04 11:30:58 +00:00