cryptpad: use full path for ln in wrapper script

This allows running cryptpad even if coreutils is not in PATH

Fixes: #408753
This commit is contained in:
Dominique Martinet
2025-05-20 11:21:21 +09:00
parent 292fa7d4f6
commit f8163822d8
+2 -1
View File
@@ -1,6 +1,7 @@
{
bash,
buildNpmPackage,
coreutils,
fetchFromGitHub,
fetchpatch,
fetchurl,
@@ -147,7 +148,7 @@ buildNpmPackage {
# directory.
makeWrapper "${lib.getExe nodejs}" "$out/bin/cryptpad" \
--add-flags "$out_cryptpad/server.js" \
--run "for d in customize.dist lib www; do ln -sf \"$out_cryptpad/\$d\" .; done" \
--run "for d in customize.dist lib www; do ${coreutils}/bin/ln -sf \"$out_cryptpad/\$d\" .; done" \
--run "if ! [ -d customize ]; then \"${lib.getExe nodejs}\" \"$out_cryptpad/scripts/build.js\"; fi"
'';