Commit 08a8389f authored by Maciej Krüger's avatar Maciej Krüger Committed by Admin
Browse files

openclaw: fix broken symlink cleanup in installPhase



The -lname '/build/*' pattern didn't match the actual sandbox path
(/nix/var/nix/builds/...). Use $NIX_BUILD_TOP instead.

Co-Authored-By: default avatarClaude Opus 4.6 (1M context) <noreply@anthropic.com>
parent 73a7d413
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -102,7 +102,7 @@ stdenvNoCC.mkDerivation (finalAttrs: {
    # Remove broken symlinks created by pnpm workspace linking in extensions
    find $libdir/extensions -xtype l -delete
    # Remove symlinks pointing back to the build sandbox
    find $libdir/dist/extensions -type l -lname '/build/*' -delete
    find $libdir/dist/extensions -type l -lname "$NIX_BUILD_TOP/*" -delete

    makeWrapper ${lib.getExe nodejs_22} $out/bin/openclaw \
      --add-flags "$libdir/dist/index.js" \