aboutsummaryrefslogtreecommitdiff
path: root/contrib/packages/guix/README
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/packages/guix/README')
-rw-r--r--contrib/packages/guix/README64
1 files changed, 0 insertions, 64 deletions
diff --git a/contrib/packages/guix/README b/contrib/packages/guix/README
deleted file mode 100644
index 635c92394..000000000
--- a/contrib/packages/guix/README
+++ /dev/null
@@ -1,64 +0,0 @@
1package definitions for GNU Guix
2---------------------------------
3
4About
5-----
6
7This directory contains various files to work with GNUnet using Guix:
8
9* A folder intended to be used with GUIX_PACKAGE_PATH ("packages")
10* gnunet-doc.scm: A file to ease the building of the docgen script output
11* gnunet.scm: A file to build gnunet with all tests
12* guix-env.scm
13
14The workflow has to be documented and will make its way into the GNUnet
15Documentation eventually. For now, all uses of guix environment, guix package,
16etc apply.
17Example invocation:
18 guix environment --ad-hoc --container --network --fallback -K -l contrib/packages/guix/gnunet.scm
19which is worth improving, but essentially takes you into an container environment
20with gnunet from HEAD, under the condition that it builds. This won't include an editor,
21so you want to run
22 guix environment --ad-hoc emacs --container --network --fallback -K -l contrib/packages/guix/gnunet.scm
23(untested). You get the idea that this folder is a historical mess and should be cleaned up
24and properly documented.
25
26Usage
27-----
28
29Just point Guix towards the root of this source tree.
30Assuming that your gnunet checkout is in $HOME/src/gnunet:
31
32 export GUIX_PACKAGE_PATH=$HOME/src/gnunet/contrib/packages/guix/packages
33
34or (if you are in the root of the gnunet git repository):
35
36 guix package -L contrib/packages/guix/packages -i package-name
37
38The packages in this repository will take precedence over those in the
39official distribution.
40
41
42To make use of the packages in your GuixSD config file:
43
44Be sure to have GUIX_PACKAGE_PATH for your shell exported,
45for Bash this could be achieved like this:
46
47 export GUIX_PACKAGE_PATH="/full/path/to/gnunet/contrib/packages/guix/directory"
48
49In the section of your systems "config.scm", you should find something like this:
50
51 (use-modules (gnu) (gnu system nss))
52
53Now to make use of "gnunetg" as an systemwide installed package we change this
54to:
55
56 (use-modules (gnu) (gnu system nss)
57 (gnunet packages gnunet))
58
59and do the usual thing:
60 - save
61 - guix system build /etc/config.scm
62 - sudo -E guix system reconfigure /etc/config.scm
63
64The "-E" in "sudo -E" is important to keep the environment variables (GUIX_PACKAGE_PATH).