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
navidrome: init at 0.23.1 #88928
navidrome: init at 0.23.1 #88928
Conversation
This should close #88903 and navidrome/navidrome#209 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your changes, I understood all of them.
However I can't "approve" them in github, even if I created the pull request, I'm not experencied with these things.
Have I to manually add them to my fork (creating a commit and then clicking on "resolve conservation" on your messages) or the changes will be automatically merged when the PR will be approved?
Moreover, a new version of navidrome is out, I also have to update the link and the hash.
You can apply the changes manually in your fork. |
I pushed the commit with the new version and your suggested changes to my fork but at the beginning of this page, in the tab "commits" I can see only the initial commit. Edit: problem solved, I was pushing to the |
No they are not. See https://github.com/NixOS/nixpkgs/pull/88928/files |
@prusnak Now I marked as resolved all the changes in thae page you link. However I'm not sure to understand what you mean. |
No, they are not. From your file:
My suggestions (you marked as resolved but you did not apply them):
|
@prusnak Ahhh, I feel so stupid, forgive me, this is my first pull request on Github and I don't know all of these mechanisms. Thank you for the patience. I thought that the green text meant it was fine Now can my request be merged? |
@acieri Oops, in the first point I wrote
@deluan Hi, I don't think it will work just like that: npm will probably try to access the internet and Nix forbids that (it would not be reproducible). If I'm right a solution would be to add |
@rnhmjoj Releasing the Adding to that, building the GoLang server would also require downloading all libraries (go modules) used by the project from the Internet. I fail to see how this is different from what npm does... Sorry if these may sound naive and even dumb questions, as this is my first contact with NixOS, and I don't know anything about its philosophy and how things work around here :) And this is probably not the best place to discuss these things... :P |
Sure, that would also work and save bandwidth too. If you can, this looks like a better idea.
The only difference is that there is infrastructure in Nixpkgs that can handle this automatically: basically Nix gathers all the go modules required, computes a single hash and store them in a content-addressed location that can be passed to the package builder. There is something similar for node also: it's more involved and produces tons of generated Nix expressions, so it's not great but works. I wouldn't known how to mix the two in a single build system, though.
No, don't worry. It's nice of you to stop by and helping. Thank you. |
@rnhmjoj ok, I've made a terrible mess but now the git tree should be clean. Anyway I've added the However I remember that wen I tried to write the derivation using i think that now the PR should be ready to be merged. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The history looks good now, thanks.
The wrapping is not quiet right, though: makeWrapperArgs
is an argument specific of python builder so it's actualy doing nothing in this case. You have to call wrapProgram
manually, see for example this package.
Tip: to check if the program is wrapped open it with a text editor (like vi result/bin/something
). If it's a shell script it's wrapped, otherwise it's not.
I accidentally closed the PR when I deleted all the commits in my fork, now I reopened it. |
Thank you! |
Motivation for this change
Because it's a nice application
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)This is my first pull request, hope that I've done everything correctly. Tell me if there are problems.