alezost / guix.el

Emacs interface for GNU Guix package manager
https://emacs-guix.gitlab.io/website/
GNU General Public License v3.0
139 stars 16 forks source link

Unable to compile locally #48

Open AitorATuin opened 3 years ago

AitorATuin commented 3 years ago

Hi, I tried to compile and install locally guix.el to play a bit with the code but I was unable to do it.

Those are the steps I did:

guix environment -l guix.scm
./autogen.sh
./configure --prefix=$PWD/install
make

Make fails when compiling the .el files. The problem seems to be in the build-aux/build-env.el file. This file seems to load the autoload definitions inside the guix enviroment using the function guix-emacs-autoload-packages passing it the environment directory.

The problem I have is that my guix installation defines that function not taking any argument, so that code fails.

I don't really know if I'm missing something or just that little script is broken but I managed to workaround it removing the argument, setting the EMACSLOADPATH env variable to point the environment and adding -q (why do it needs to load my init files?).

Am I missing something on how to build it locally using guix?

Thanks.