-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
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
freenet: rewrite wrapper to not depend on PATH #12107
Conversation
how to test it? |
I can test but the original was working for me. I'll report back here shortly if things still work. Basic steps are run freenet:
Then visit http:/127.0.0.1:8888 in the browser and see if it shows the freenet installation wizard. |
No I mean, how to grab this specific pull request and install it |
@doublec I believe @spacekitteh was trying to run it under systemd, I assume as part of NixOS. @spacekitteh I think, assuming you have Freenet as a systemd service somewhere in your config:
Should do it. |
Seems broken with this commit. After installation running |
@doublec Fixed, sorry about that. |
Thanks, I confirm that works running freenet standalone. I don't know how to get it running as a systemd service on NixOS but if someone can provide pointers I can test that. |
url = https://github.com/freenet/fred; | ||
rev = "refs/tags/${version}"; | ||
sha256 = "1b6e6fec2b9a729d4a25605fa142df9ea42e59b379ff665f580e32c6178c9746"; | ||
}; |
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 diff of the section above looks really strange. What is going on there? Did you add tabs, maybe?
Generally speaking, please don't commit white-space changes as those make the diffs unnecessarily long and hard to read.
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.
What I've done here is moved a "base" derivation into the let
block, and the main derivation is a wrapper around that. I've since figured out a way I can merge them into one derivation again by using substituteAll
from stdenv directly, which I will probably do this evening, which would clear up the diff a lot.
Ping |
freenet: rewrite wrapper to not depend on PATH
Rewrite wrapper depended on
$PATH
containing bash and coreutils, so I've merged the wrapper and run script together and ensured that they don't. Can @spacekitteh test this, I've so far only tested that it starts.