aboutsummaryrefslogtreecommitdiff
path: root/doc/guix_profile_setup.org
blob: c397377c85b03f8930c776ac29f2f07a21e26016 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
* Setting up GUIX profile for GN

First create a guix profile with the latest packages:

: ~/opt/guix/bin/guix pull

This will create a profile with the latest packages under`~/.config/guix/current`

Now you have the latest guix. Check: `$HOME/.config/guix/current/bin/guix --version`

At this point, it's worth mentioning that installing
python3-genenetwork using `$HOME/.config/guix/current/bin/guix` should
work; but let's use the dev version(since that may come handy in
time), and it's a nice thing to know.

Next, we ensure that the appropriate GUILE<sub>PATHS</sub> are set:

: export GUILE_LOAD_PATH=$HOME/.config/guix/current/share/guile/site/3.0/
: export GUILE_LOAD_COMPILED_PATH=$HOME/.config/guix/current/lib/guile/3.0/site-ccache/ 

Get into the container:

: $HOME/.config/guix/current/bin/guix environment -C guix --ad-hoc bash gcc-toolchain
: ./bootstrap
: ./configure --localstatedir=/var --sysconfdir=/etc

Check that everything works:

: make check

Clean up and build:

: make clean-go
: make -j 4
: exit

Install Python3 (substitute paths when necessary):

: env GUIX_PACKAGE_PATH='/home/zas1024/guix-bioinformatics:/home/zas1024/guix-past/modules' $HOME/.config/guix/current/bin/guix install python3-genenetwork2 -p ~/opt/python3-genenetwork2 --substitute-urls="http://guix.genenetwork.org https://berlin.guixsd.org https://ci.guix.gnu.org https://mirror.hydra.gnu.org"