Skip to content

Commit cabad5e

Browse files
trilium-server: fix build error (#408006)
2 parents 0bdf465 + 6e89b5e commit cabad5e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

pkgs/applications/office/trilium/server.nix

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ stdenv.mkDerivation {
1717
inherit version;
1818
meta = metaCommon // {
1919
platforms = [ "x86_64-linux" ];
20+
mainProgram = "trilium-server";
2021
};
2122

2223
src = fetchurl serverSource;
@@ -50,6 +51,12 @@ stdenv.mkDerivation {
5051
exec ./node/bin/node src/www
5152
EOF
5253
chmod a+x $out/bin/trilium-server
54+
55+
# ERROR: noBrokenSymlinks: found 4 dangling symlinks, 0 reflexive symlinks and 0 unreadable symlinks
56+
unlink $out/share/trilium-server/node/bin/npx
57+
unlink $out/share/trilium-server/node/bin/npm
58+
unlink $out/share/trilium-server/node_modules/.bin/electron
59+
unlink $out/share/trilium-server/node_modules/.bin/electron-installer-debian
5360
'';
5461

5562
passthru.tests = {

0 commit comments

Comments
 (0)