-
-
Notifications
You must be signed in to change notification settings - Fork 15.4k
rainloop: 1.13.0 -> 1.14.0 #80910
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
rainloop: 1.13.0 -> 1.14.0 #80910
Conversation
pkgs/servers/rainloop/default.nix
Outdated
installPhase = '' | ||
mkdir $out | ||
cp -r rainloop/* $out | ||
rm -rf $out/data | ||
ln -s ${dataPath} $out/data | ||
echo -n "$includeScript" > $out/include.php |
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.
Probably better to pkgs.writeText
the include script and copy it here. This way, we don't have to think about shell escaping.
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.
@dasJ, I changed the derivation according to your advice. I used cp
to copy the file. ln -s
was also an option but not sure if it was best practice.
- update version - change mechanism to set the data folder outside the nix store
What is missing for this to be merged ? |
My merge permissions 👀 |
cc @Ma27 can you merge this? :) |
briefly tested locally, LGTM 👍 |
Thanks 👍 |
Motivation for this change
Update rainloop to latest available version, and also fix a problem on NixOS where the application would not work by simply creating a symlink for the
<derivation>/data
folder, as rainloop will complain the data directory is not writable.The better way to set a data folder outside the rainloop folder is by creating a short
include.php
that is used as an override to data location (reference: https://github.com/RainLoop/rainloop-webmail/blob/master/_include.php).The new location for the
data
folder will have to be created separately (e.g. through a module in NixOS or otherwise) with write access to the user under which the PHP scripts are executed.Note that on NixOS, setting the rainloop data path under
/etc
will also cause errors, hence the change of the default to/var/lib/rainloop
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)