User:Csfore/Guix

From Gentoo Wiki
Jump to:navigation Jump to:search
Note
Even though this page is in the user namespace, corrections and additions are much appreciated! This is simply wiki policy, this page can be moved to the main wiki as soon as it achieves critical mass more.

GNU Guix is a declarative package manager written in Guile Scheme that is comparable to the Nix package manager.

Important
Do NOT report bugs regarding Guix to bugs.gentoo.org, report them to the overlay.

Installation

Warning
Guix depends on Guile 3.0+, which is currently masked in the Gentoo repositories, you have been warned.

Adding the overlay

root #eselect repository add csfore-overlay git https://github.com/csfore/gentoo-overlay.git

Emerge

root #emerge --ask sys-apps/guix

Usage

Building a package

To build Guix using Guix, run guix build:

user $guix build guix

Parallel builds

To allow for parallel builds, add more users to the guix group:

root #for i in $(seq -w 1 10); do
  useradd -g guix -G guix \
  -d /var/empty -s $(which nologin) \
  -c "Guix build user $i" --system \
  guix$i;
done