diff options
| author | Fausto Núñez Alberro <fausto.nunez@mailbox.org> | 2025-06-28 11:25:26 +0200 |
|---|---|---|
| committer | Fausto Núñez Alberro <fausto.nunez@mailbox.org> | 2025-06-29 09:37:00 +0200 |
| commit | 1aff5d6e7ee4d833cea31763f0297fca2b53e1f5 (patch) | |
| tree | bec5fc737f596f4baaa23cb306817f4ff94ec215 /pkgs/development/python-modules/python-openstackclient/git@git.tavy.me:nixos | |
| parent | 2da8778b92452ccc781961c251bb9a5885c1a217 (diff) | |
gemini-cli: fix file collisions
Multiple Node.js packages in nixpkgs create file collisions when installed together in home-manager or system profiles. Specifically:
- `gemini-cli` vs `eslint`: collision on `lib/node_modules/eslint/conf/default-cli-options.js`
- `gemini-cli` vs `angular-language-server`: collision on `lib/node_modules/semver/README.md` (with permission differences: 0555 vs 0444)
This occurs because these packages install their bundled dependencies directly to `$out/lib/node_modules/`, causing path conflicts when multiple packages provide the same transitive dependencies.
The issue stems from packages copying their entire `node_modules` directory to a shared location (`$out/lib/node_modules/`) rather than isolating their dependencies in package-specific directories.
Before:
```nix
cp -r node_modules "$out/lib/"
```
After:
```nix
cp -r node_modules "$out/share/gemini-cli/"
```
This is probably counterproductive in some ways (would ideally share deps?) but at least this fix allows these packages to coexist.
Diffstat (limited to 'pkgs/development/python-modules/python-openstackclient/git@git.tavy.me:nixos')
0 files changed, 0 insertions, 0 deletions
