diff options
Diffstat (limited to 'contrib/guix-env.scm')
-rw-r--r-- | contrib/guix-env.scm | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/contrib/guix-env.scm b/contrib/guix-env.scm new file mode 100644 index 000000000..e4db64547 --- /dev/null +++ b/contrib/guix-env.scm | |||
@@ -0,0 +1,46 @@ | |||
1 | ;;; This file is part of GNUnet. | ||
2 | ;;; Copyright (C) 2016, 2017, 2018 GNUnet e.V. | ||
3 | ;;; | ||
4 | ;;; GNUnet is free software: you can redistribute it and/or modify it | ||
5 | ;;; under the terms of the GNU Affero General Public License as published | ||
6 | ;;; by the Free Software Foundation, either version 3 of the License, | ||
7 | ;;; or (at your option) any later version. | ||
8 | ;;; | ||
9 | ;;; GNUnet is distributed in the hope that it will be useful, but | ||
10 | ;;; WITHOUT ANY WARRANTY; without even the implied warranty of | ||
11 | ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
12 | ;;; Affero General Public License for more details. | ||
13 | ;;; | ||
14 | ;;; You should have received a copy of the GNU Affero General Public License | ||
15 | ;;; along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
16 | |||
17 | |||
18 | ;;; GNUnet development environment for Guix | ||
19 | ;; | ||
20 | ;; Depending on whether the search path <gnunet.git>/guix is included or not, | ||
21 | ;; the environment has GNUnet from git or uses the GNU distribution's | ||
22 | ;; (most likely older) GNUnet package. | ||
23 | ;; | ||
24 | ;; You can use the development version of GNUnet by passing an extra parameter | ||
25 | ;; or setting an environment variable: | ||
26 | ;; | ||
27 | ;; --load-path=<gnunet.git>/guix | ||
28 | ;; export GUIX_PACKAGE_PATH=<gnunet.git>/guix | ||
29 | ;; | ||
30 | ;; To spawn an environment with GNUnet's dependencies installed, run: | ||
31 | ;; | ||
32 | ;; guix environment -l guix-env.scm | ||
33 | ;; | ||
34 | ;; To also make GNUnet available in this environment, run: | ||
35 | ;; | ||
36 | ;; guix environment -l guix-env.scm --ad-hoc -l guix-env.scm | ||
37 | ;; | ||
38 | ;; It is recommented to also pass the '--pure' option to guix, to make sure the | ||
39 | ;; environment is not polluted with existing packages. | ||
40 | ;; | ||
41 | ;; The version of the resulting package is the output of 'git describe --tags'. | ||
42 | |||
43 | (use-modules | ||
44 | (gnu packages gnunet)) | ||
45 | |||
46 | gnunet | ||