-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
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
etherpad-lite: init at 2.2.6 #353814
base: master
Are you sure you want to change the base?
etherpad-lite: init at 2.2.6 #353814
Conversation
Result of 1 package built:
|
the package builds fine. i seem to also get a run-time error tho about the db, for which it similarly defaults to trying to write to the nix store:
could you maybe update your instructions to incorporate that one as well? (i kinda wish it at least had a working |
You need to change the database path in |
Hm. Does it not create the dirty/sqlite db files by themselves, if they do not yet exist?
Your package seems fine, I guess I'm just not so familiar with this software. |
@KiaraGrouwstra In your log you see the following error: |
I plan to contribute a NixOS module later, to help users setup Etherpad on NixOS. I agree with the fact that Etherpad doesn't have an intuitive command line interface. |
runHook postBuild | ||
''; | ||
|
||
# Upstream scripts uses `pnpm run prod` which is equivalent to |
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.
How hard would it be to patch that?
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 do you mean by 'that'? Should I change makeWrapper
arguments to use pnpm
in $out
?
fetchFromGitHub, | ||
fetchpatch, | ||
gitUpdater, | ||
pnpm, |
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.
Most likely you need to change pnpm
to pnpm_9
. Since #371832, it points to pnpm_10
instead of pnpm_9
.
Fix #117608
When starting
etherpad-lite
, you need to provide some arguments:--settings
with an absolute path to settings.json--credentials
with an absolute path tocredentials.json
(which will be created),--sessionkey
with an absolute path toSESSIONKEY.txt
(which will be created).else etherpad-lite will try to write into the Nix store and fail.
settings.json
also needs to reference a database outside of the nix store.Note: we will need to contribute an option upstream later for plugins support, as Etherpad hardcodes the path to
<etherpad_root>/var/installed_plugins.json
: https://github.com/ether/etherpad-lite/blob/056e777539dc9b5ef7db965740965b0f49ac388e/bin/plugins.ts#L68Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.