NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.43k stars 13.64k forks source link

emacsPackages.treesit-grammars.with-all-grammars fails to build #342344

Closed DamienCassou closed 2 days ago

DamienCassou commented 2 days ago

Describe the bug

Since commit https://github.com/NixOS/nixpkgs/pull/337867 emacsPackages.treesit-grammars.with-all-grammars doesn't build anymore. I failed to see that before merging the PR and nixpkgs-review was crashing.

Steps To Reproduce

Steps to reproduce the behavior:

  1. Evaluate nix-build -A emacsPackages.treesit-grammars.with-all-grammars in the master branch
these 2 derivations will be built:
  /nix/store/s8f26pdxj1wygsn9nkklcc76yzdxlzfx-tree-sitter-wing-grammar-0.23.0.drv
  /nix/store/xz0gygngjwyrb38r2iy6jz2plvr7zh29-emacs-treesit-grammars.drv
building '/nix/store/s8f26pdxj1wygsn9nkklcc76yzdxlzfx-tree-sitter-wing-grammar-0.23.0.drv'...
Running phase: unpackPhase
unpacking source archive /nix/store/qqpfam7c2r7psqlrz1n6acqfp50ga4m3-wing-ae30eb6
source root is wing-ae30eb6
Running phase: patchPhase
Running phase: updateAutotoolsGnuConfigScriptsPhase
Running phase: configurePhase
/nix/store/91d27rjqlhkzx7mhzxrir1jcr40nyc7p-stdenv-linux/setup: line 1707: cd: libs/tree-sitter-wing: No such file or directory
error: builder for '/nix/store/s8f26pdxj1wygsn9nkklcc76yzdxlzfx-tree-sitter-wing-grammar-0.23.0.drv' failed with exit code 1;
       last 7 log lines:
       > Running phase: unpackPhase
       > unpacking source archive /nix/store/qqpfam7c2r7psqlrz1n6acqfp50ga4m3-wing-ae30eb6
       > source root is wing-ae30eb6
       > Running phase: patchPhase
       > Running phase: updateAutotoolsGnuConfigScriptsPhase
       > Running phase: configurePhase
       > /nix/store/91d27rjqlhkzx7mhzxrir1jcr40nyc7p-stdenv-linux/setup: line 1707: cd: libs/tree-sitter-wing: No such file or directory
       For full logs, run 'nix log /nix/store/s8f26pdxj1wygsn9nkklcc76yzdxlzfx-tree-sitter-wing-grammar-0.23.0.drv'.
error: 1 dependencies of derivation '/nix/store/xz0gygngjwyrb38r2iy6jz2plvr7zh29-emacs-treesit-grammars.drv' failed to build

Expected behavior

The build to be successful.

Notify maintainers

/CC @ribru17

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.10.6-200.fc40.x86_64, Fedora Linux, 40 (Workstation Edition), nobuild`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.18.5`
 - channels(root): `"nixpkgs"`
 - channels(temp): `"home-manager, nixpxkgs"`
 - channels(cassou): `"home-manager-22.11.tar.gz, nixpkgs"`
 - nixpkgs: `/home/cassou/Documents/projects/nix-system/nixpkgs`

Add a :+1: reaction to issues you find important.

ribru17 commented 2 days ago

Apologies and thanks for the report!! See #342349