Unverified Commit f00a7e7e authored by Alexander Sieg's avatar Alexander Sieg
Browse files

outline: fix email notifications

Outline needs it's mail template at public/email relative to this
working directory.

https://github.com/outline/outline/blob/e3db7455b33252e35b17a5c3520b21194b2b968f/server/emails/mailer.tsx#L87
parent 1a355ae7
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -56,7 +56,12 @@ stdenv.mkDerivation rec {
    runHook preInstall

    mkdir -p $out/bin $out/share/outline
    mv public node_modules build $out/share/outline/
    mv node_modules build $out/share/outline/
    # On NixOS the WorkingDirectory is set to the build directory, as
    # this contains files needed in the onboarding process. This folder
    # must also contain the `public` folder for mail notifications to
    # work, as it contains the mail templates.
    mv public $out/share/outline/build

    node_modules=$out/share/outline/node_modules
    build=$out/share/outline/build