From 9d64a0b45266133d8f6b394e116f8f59c11dc098 Mon Sep 17 00:00:00 2001 From: Dominique Martinet Date: Sat, 24 May 2025 22:15:55 +0900 Subject: [PATCH] cryptpad: fix broken symlink that renders cryptpad unusable This fixes a broken symlink after install; there probably is a better way to do it but that'll work and ideally new test will catch this breaking again. Fixes: #404114 --- pkgs/by-name/cr/cryptpad/package.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/by-name/cr/cryptpad/package.nix b/pkgs/by-name/cr/cryptpad/package.nix index 804ff3c72a29..ffb27ee1bb8a 100644 --- a/pkgs/by-name/cr/cryptpad/package.nix +++ b/pkgs/by-name/cr/cryptpad/package.nix @@ -120,6 +120,8 @@ buildNpmPackage { # Move to install directory manually. npm run install:components mv www/components "$out_cryptpad/www/" + # and fix absolute symlink to /build... + ln -Tfs ../../src/tweetnacl "$out_cryptpad/www/components/tweetnacl" # install OnlyOffice (install-onlyoffice.sh without network) mkdir -p "$out_cryptpad/www/common/onlyoffice/dist"