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

pass NEXTCLOUD_VERSIONS the command line instead #8

Open
teto opened this issue Jul 17, 2023 · 5 comments
Open

pass NEXTCLOUD_VERSIONS the command line instead #8

teto opened this issue Jul 17, 2023 · 5 comments

Comments

@teto
Copy link

teto commented Jul 17, 2023

I've recently tried to improve my nextcloud setup (including a full reinstall, here are some notes https://discourse.nixos.org/t/how-to-get-beyond-the-current-nextcloud-module/30533/3).

I was looking at patching https://github.com/NixOS/nixpkgs/blob/master/pkgs/servers/nextcloud/packages/generate.sh (to be able to run it from any directory) and was confused by the NEXTCLOUD_VERSIONS variable that did not seem to be used ? Is there a way to pass the nextcloud version on the CLI instead so that it's more explicit ?

Also I wonder if you had considered moving the repo to https://github.com/nix-community/ ? many *2nix programs live there to ease contributing/discovery.

Also would be nice to have a --help available, if only to discover how to use the program.

@Scriptkiddi
Copy link
Contributor

Thank you for sharing your thoughts and suggestions regarding the Nextcloud Nix package. While we appreciate your interest in moving the repository to the nix-community organization on GitHub, I wanted to inform you that, due to the nature of the code being associated with our company, we have decided to maintain it within our own organization.

By keeping the repository within our organization, we can ensure easier access and control over the codebase, aligning it closely with our internal processes and security measures. This allows us to maintain the necessary level of control and governance over the code.

However, we highly encourage community involvement and contributions to the project. We greatly appreciate your enthusiasm and willingness to improve the Nextcloud Nix package. If you have any specific changes or enhancements in mind, we would be more than happy to review and consider them. Please feel free to open a pull request with your proposed changes, and our team will diligently review your submission.

Your feedback and contributions are valuable to us, and we appreciate your engagement with the project. If you have any further questions or need assistance with your pull request, please don't hesitate to reach out. We're here to help and collaborate as much as possible.

@teto
Copy link
Author

teto commented Jul 17, 2023

yeah I am not surprised about nix-community but other points remain valid:
I've opened a PR to make the updater more usable but I am kinda limited by nc4nix, would be nice to give it an output directory as well see:
NixOS/nixpkgs#244057 (comment)

Also it's slow as hell, could the update script run in parallel several nc4nix, one per nextcloud version ?

@onny
Copy link
Contributor

onny commented Jul 18, 2023

yeah I am not surprised about nix-community but other points remain valid: I've opened a PR to make the updater more usable but I am kinda limited by nc4nix, would be nice to give it an output directory as well see: NixOS/nixpkgs#244057 (comment)

Regarding the initial point of your feature request here, I'm fine with having NEXTCLOUD_VERSIONS as an environment variable. Having a PR which implements a command line argument for this would be fine too.

Also it's slow as hell, could the update script run in parallel several nc4nix, one per nextcloud version ?

Could be a point for an other issue or feature request here :)

@teto
Copy link
Author

teto commented Jul 18, 2023

To be clear I dont plan to submit PRs here (no time, dont know go) but it's annoying to not be able how the program works without looking at strace. Adding a --help would go a long way, even better a --output or just dump the generated code on stdout so that the user can redirect this to a file of its choice. NixOS/nixpkgs#244057 (comment)

@leonklingele
Copy link
Member

Would adding a How to run section to the README.md with something à la Run this app using NEXTCLOUD_VERSIONS=27,28 nc4nix suffice here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants