Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

luarocks-nix,luaPackages: formatting and additions; awesome: docs! #60343

Conversation

dtzWill
Copy link
Member

@dtzWill dtzWill commented Apr 27, 2019

Motivation for this change

I wanted the wonderful generated docs from awesome,
but needed some new lua modules for this to happen.

Along the way worked on formatting generated by luarocks-nix,
but even so ultimately did a bit of post-processing.

Marking draft because I don't want to actually point to my fork
but haven't sent the changes upstream
(which may need some tweaks or whatnot to be satisfactory).

cc @teto

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nix-review --run "nix-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Assured whether relevant documentation is up to date
  • Fits CONTRIBUTING.md.

@7c6f434c
Copy link
Member

Seems fine from the first reading

@teto
Copy link
Member

teto commented Apr 28, 2019

Overall fine.
yep the pkgs/development/lua-modules/generated-packages.nix being different enough for git to rewrite it is a pain. I agree changes must be done to luarocks-nix so that the output is clean and stable (it's different because I tended to do little tweaks everytime which ended up regenerating the whole thing anyway). Please submit your changes to luarocks-nix. I know it's a mess so don't hold back :p
I wonder how other software work but I wouldn't mind transfer ownership to the nixos org.

Mostly formatting improvements,
basexx apparently has new version which was picked up.
* no leading whitespace
* collapse consecutive blank lines to single line
* indent fromJSON bits
Especially useful when using non-release versions,
but good to have locally regardless.
@dtzWill dtzWill force-pushed the fix/luarocks-nix-formatting-and-awesome-doc-goodness branch from 93417fa to 403ce6a Compare April 28, 2019 15:14
@dtzWill dtzWill marked this pull request as ready for review April 28, 2019 15:14
@dtzWill
Copy link
Member Author

dtzWill commented May 10, 2019

Whoa I thought was merged :3, thanks!

@dtzWill dtzWill merged commit d7ff576 into NixOS:master May 10, 2019
@dtzWill dtzWill deleted the fix/luarocks-nix-formatting-and-awesome-doc-goodness branch May 10, 2019 21:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants