From e5c67b16acda18ba79ad8039ed67431c1bdecc24 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Sun, 5 Apr 2026 20:12:59 +0300 Subject: [PATCH] fix(flake): failing due to symlinks to /build --- flake.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index 5c206301d4..55f299b854 100644 --- a/flake.nix +++ b/flake.nix @@ -151,9 +151,10 @@ runHook postInstall ''; - # This file is a symlink into /build which is not allowed. + # Symlinks pointing to /build directory are not allowed in the Nix store. + # This removes all dangling symlinks that point to the temporary build directory. postFixup = '' - find $out/opt -name prebuild-install -path "*/better-sqlite3/node_modules/.bin/*" -delete || true + find $out/opt -type l -lname '/build/*' -delete || true ''; components = [