nix-community / nix-doom-emacs

doom-emacs packaged for Nix [maintainers=@thiagokokada]
MIT License
225 stars 43 forks source link

VTerm fails to build #340

Closed rakanalh closed 1 year ago

rakanalh commented 1 year ago

I am using this package with home-manager and have exactly the configuration as the readme suggests. However, performing home-manager switch results in the following:

gcc: error: unrecognized command-line option '-VTermSBClearNotExists'
make[2]: *** [CMakeFiles/vterm-module.dir/build.make:76: CMakeFiles/vterm-module.dir/vterm-module.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:84: CMakeFiles/vterm-module.dir/all] Error 2
make: *** [Makefile:91: all] Error 2
error: builder for '/nix/store/l6x8272s8lhdgldlmaqgl7bfb0p5cslz-emacs-vterm-20221117.1342.drv' failed with exit code 2;
       last 10 log lines:
       > Checking /nix/store/fg82mvclvy8p6w3ppsxbfjwd6qqm0yvd-emacs-vterm-20221117.1342/share/emacs/site-lisp/elpa/vterm-20221117.1342/build/CMakeFiles/3.22.3/CompilerIdC...
       > Checking /nix/store/fg82mvclvy8p6w3ppsxbfjwd6qqm0yvd-emacs-vterm-20221117.1342/share/emacs/site-lisp/elpa/vterm-20221117.1342/build/CMakeFiles/3.22.3/CompilerIdC/tmp...
       > Done (Total of 1 file compiled, 2 skipped)
       > Parsing tar file...
       > Parsing tar file...done
       > [ 25%] Building C object CMakeFiles/vterm-module.dir/vterm-module.c.o
       > gcc: error: unrecognized command-line option '-VTermSBClearNotExists'
       > make[2]: *** [CMakeFiles/vterm-module.dir/build.make:76: CMakeFiles/vterm-module.dir/vterm-module.c.o] Error 1
       > make[1]: *** [CMakeFiles/Makefile2:84: CMakeFiles/vterm-module.dir/all] Error 2
       > make: *** [Makefile:91: all] Error 2
       For full logs, run 'nix log /nix/store/l6x8272s8lhdgldlmaqgl7bfb0p5cslz-emacs-vterm-20221117.1342.drv'.
error: 1 dependencies of derivation '/nix/store/7yjqsrm8g47d9z5vg4j9czi93kdgc5zc-install-repo.drv' failed to build
error: 1 dependencies of derivation '/nix/store/afca5grc11p0qgks0v371bc70wm74la2-straight-emacs-env.drv' failed to build
error: 1 dependencies of derivation '/nix/store/6waca6x5w7a7m2ilp7b2d5cn9azy4sim-emacs-with-packages-28.1.drv' failed to build
error: 1 dependencies of derivation '/nix/store/kqcr61f0sy5dfgpc5czdxxdgg7azp51z-emacs.service.drv' failed to build
error: 1 dependencies of derivation '/nix/store/kpim48zqz581crpr0kqjiawcl37qzdwn-home-manager-path.drv' failed to build
error: 1 dependencies of derivation '/nix/store/40dks5n692ivcaqj6psa8r9369bma4xm-home-manager-generation.drv' failed to build

I can see that libvterm has fixed the issue on their repo but the fix is not reflected in this package. https://github.com/akermu/emacs-libvterm/issues/643

Not sure how to get the fix on my machine though... please advise.

rakanalh commented 1 year ago

Tried with:

let doom-emacs = pkgs.callPackage (builtins.fetchTarball {
  url = https://github.com/thiagokokada/nix-doom-emacs/archive/bump-doom-emacs.tar.gz;
}) {
  doomPrivateDir = ./dotfiles/doom;
};

The PR #316 is pending... but wanted to try it out. Doom reports it loaded 0 packages and doesn't take into consideration my .doom.d at all.

rakanalh commented 1 year ago

Seems like the issue is fixed in the latest master of this repo.