Skip to content

clawdbot package bundles node binary, conflicts with system nodejs #15

@schickling

Description

@schickling

Problem

The clawdbot package bundles its own node binary at bin/node, which conflicts with any system-installed nodejs when both are in home.packages.

Error

pkgs.buildEnv error: two given paths contain a conflicting subpath:
  `/nix/store/...-nodejs-24.13.0/bin/node' and
  `/nix/store/...-clawdbot-2.0.0-beta5/bin/node'

Current Workaround

Users must exclude nodejs from their home-manager packages when using clawdbot:

# In home-manager config
home.packages = lib.filter 
  (pkg: !(lib.hasPrefix "nodejs" (pkg.pname or pkg.name or ""))) 
  existingPackages;

Suggested Fix

Consider one of:

  1. Don't expose node in bin/ - keep it internal to the package
  2. Rename to clawdbot-node or similar
  3. Use passthru or wrapper scripts that reference node internally without exposing it

Environment

  • nix-clawdbot from flake
  • home-manager with nodejs_24 in packages
  • macOS (darwin)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions