Next: , Up: Contributing   [Contents][Index]

14.1 Building from Git

If you want to hack Guix itself, it is recommended to use the latest version from the Git repository:

git clone

When building Guix from a checkout, the following packages are required in addition to those mentioned in the installation instructions (see Requirements).

The easiest way to set up a development environment for Guix is, of course, by using Guix! The following command starts a new shell where all the dependencies and appropriate environment variables are set up to hack on Guix:

guix environment guix

See Invoking guix environment, for more information on that command. Extra dependencies can be added with --ad-hoc:

guix environment guix --ad-hoc help2man git strace

Run ./bootstrap to generate the build system infrastructure using Autoconf and Automake. If you get an error like this one: error: possibly undefined macro: PKG_CHECK_MODULES

it probably means that Autoconf couldn’t find pkg.m4, which is provided by pkg-config. Make sure that pkg.m4 is available. The same holds for the guile.m4 set of macros provided by Guile. For instance, if you installed Automake in /usr/local, it wouldn’t look for .m4 files in /usr/share. In that case, you have to invoke the following command:

export ACLOCAL_PATH=/usr/share/aclocal

See Macro Search Path in The GNU Automake Manual, for more information.

Then, run ./configure as usual. Make sure to pass --localstatedir=directory where directory is the localstatedir value used by your current installation (see The Store, for information about this).

Finally, you have to invoke make check to run tests (see Running the Test Suite). If anything fails, take a look at installation instructions (see Installation) or send a message to the mailing list.

Next: , Up: Contributing   [Contents][Index]