Skip to content
This repository has been archived by the owner on Mar 26, 2021. It is now read-only.

detrout/debian-guix

Repository files navigation

Update 2021 Mar 25

Vagrant Cascadian worked on getting a current version of guix into Debian proper.

The packaging is in https://github.com/detrout/debian-guix

guix for Debian

The Guix daemon requires a reasonable amount of setup before it'll work correctly so I thought I'd package it.

However since Guix includes several bootstrap binaries it's unlikely that this package can go into Debian figuring out how to build the bootstrap binaries from source using Debian tools.

Usage

To use this repository checkout it out <Guix Root>/debian. You'll also need to a copy of the source tarball in <Guix Root>/..

There's two ways to end up with a usable source tree, either using a guix git clone or extracting a tarball. If you use a git clone, you'll still need to check out a branch that corresponds to a release tarball, due to how Debian source trees work.

If you do this instead of mkdir guix, cd guix, also skip the tar xavf step.

git clone https://git.savannah.gnu.org/r/guix.git
cd guix
git tag -l
git checkout -b <branch name> v<version>
mkdir guix
cd guix
git clone https://github.com/detrout/debian-guix.git debian
export GUIX_VERSION=$(dpkg-parsechangelog -S Version | cut -f 1 -d -)
uscan --download-current-version
tar xavf ../guix_${GUIX_VERSION}.orig.tar.gz --strip-components=1

Once you have a guix source tree unpacked and ready then you need to add the packaging scripts, build dependencies, and start building.

sudo apt-get install build-essential dh-autoreconf dh-systemd autotools-dev graphviz guile-2.0-dev guile-json help2man libgcrypt20-dev libsqlite3-dev libbz2-dev texinfo
dpkg-buildpackage
sudo dpkg -i ../guix_${GUIX_VERSION}-1_amd64.deb ../emacs-guix_${GUIX_VERSION}-1_all.deb

The post install script sets up the guixbuild users however you probably want to authorize Guix's build server hydra.gnu.org

You can do that with

sudo guix archive --authorize < /usr/share/guix/hydra.gnu.org.pub

Using this package with guix git clones

Once you have the guix package installed you may want to modify or add new guix packages.

The following recipe will clones the guix repository, and configures the checkout. dh_auto_configure is a convientent shortcut to set several configure arguments especially --localstatedir=/var

Setting localstatedir is needed to find the guix-daemon socked and package database.

Making the ~/.config/guix/latest symlink point to your checkout allows guix to find your changes to official packaging repositories.

cd <your favorite project directory>
git clone git://git.savannah.gnu.org/guix.git
cd guix
./bootstrap
dh_auto_configure
make      
mkdir ~/.config/guix
cd ~/.config/guix
ln -s <your favorite project directory>/guix latest

You can also use GUIX_PACKAGE_PATH to point to other directories where you have your own packages defined. (However pointing GUIX_PACKAGE_PATH to the guix checkout causes trouble)

About

Debian packaging recipe for Guix package manager

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published