1 ;;; This file is part of GNUnet.
2 ;;; Copyright (C) 2016, 2017 GNUnet e.V.
4 ;;; GNUnet is free software; you can redistribute it and/or modify
5 ;;; it under the terms of the GNU General Public License as published
6 ;;; by the Free Software Foundation; either version 3, or (at your
7 ;;; option) any later version.
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 ;;; General Public License for more details.
14 ;;; You should have received a copy of the GNU General Public License
15 ;;; along with GNUnet; see the file COPYING. If not, write to the
16 ;;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 ;;; Boston, MA 02110-1301, USA.
19 ;; Guix package for GNUnet development
24 ;; To build and install the package in the user environment, use:
26 ;; guix package --install-from-file=guix-env.scm
31 ;; Precondition for using this file is that you run Guix and have a
32 ;; development setup for this setup, which involves a version of Guile in
35 ;; guix build -f guix-env.scm
37 ;; We'd like to provide advanced functions such as guix environment specific
38 ;; gnunet-git package and usage of gnunet-gtk-git, but this is subject
39 ;; to tests right now.
41 ;; Further versions of GNUnet for Guix can currently be found in
42 ;; https://git.pragmatique.xyz/ng0-packages/log.html, mirrored at
43 ;; https://notabug.org/ng0/ng0-packages
50 (guix build-system gnu)
52 ((guix build utils) #:select (with-directory-excursion))
56 (gnu packages autotools)
59 (gnu packages compression)
61 (gnu packages databases)
63 (gnu packages gettext)
68 (gnu packages gnuzilla)
70 (gnu packages gstreamer)
74 (gnu packages image-viewers)
76 (gnu packages libunistring)
79 (gnu packages multiprecision)
81 (gnu packages pkg-config)
82 (gnu packages pulseaudio)
89 ((guix licenses) #:prefix license:))
91 (define %source-dir (dirname (current-filename)))
96 (version (string-append "0.10.1-" "dev"))
98 (local-file %source-dir
100 #:select? (git-predicate %source-dir)))
101 (build-system gnu-build-system)
105 ("gstreamer" ,gstreamer)
106 ("gst-plugins-base" ,gst-plugins-base)
108 ("libextractor" ,libextractor)
109 ("libgcrypt" ,libgcrypt)
111 ("libmicrohttpd" ,libmicrohttpd)
113 ("libunistring" ,libunistring)
116 ("pulseaudio" ,pulseaudio)
118 ("postgresql" ,postgresql)
122 ("python" ,python) ; tests and gnunet-qr
126 ("bluez" ,bluez) ; for optional bluetooth feature
128 ;; There are currently no binary substitutes for texlive on
129 ;; hydra.gnu.org or its mirrors due to its size. Uncomment if you need it.
130 ;;("texlive-minimal" ,texlive-minimal) ; optional.
133 `(("pkg-config" ,pkg-config)
134 ("autoconf" ,autoconf)
135 ("automake" ,automake)
136 ("gnu-gettext" ,gnu-gettext)
137 ("libtool" ,libtool)))
138 ;; TODO: To make use of out:debug, which carries the symbols,
139 ;; this file needs to fixed.
140 (outputs '("out" "debug"))
143 (list (string-append "--with-nssdir=" %output "/lib")
144 "--enable-gcc-hardening"
145 "--enable-linker-hardening"
149 "--enable-experimental"
150 "--enable-logging=verbose"
152 ;;#:parallel-tests? #f ; parallel building seems to fail
153 ;;#:tests? #f ; fail: test_gnunet_statistics.py
155 ;; swap check and install phases and set paths to installed bin
156 (modify-phases %standard-phases
157 (add-after 'unpack 'patch-bin-sh
159 (substitute* "bootstrap"
160 (("contrib/pogen.sh") "sh contrib/pogen.sh"))
161 (for-each (lambda (f) (chmod f #o755))
162 (find-files "po" ""))
164 (add-after 'patch-bin-sh 'bootstrap
166 (zero? (system* "sh" "bootstrap"))))
168 ;; XXX: https://gnunet.org/bugs/view.php?id=4619
169 ;; (add-after 'install 'set-path-for-check
170 ;; (lambda* (#:key outputs #:allow-other-keys)
171 ;; (let* ((out (assoc-ref outputs "out"))
172 ;; (bin (string-append out "/bin"))
173 ;; (lib (string-append out "/lib")))
174 ;; (setenv "GNUNET_PREFIX" lib)
175 ;; (setenv "PATH" (string-append (getenv "PATH") ":" bin))
176 ;; (zero? (system* "make" "check"))))))))
177 (synopsis "Secure, decentralized, peer-to-peer networking framework")
179 "GNUnet is a framework for secure peer-to-peer networking. The
180 high-level goal is to provide a strong foundation of free software for a
181 global, distributed network that provides security and privacy. GNUnet in
182 that sense aims to replace the current internet protocol stack. Along with
183 an application for secure publication of files, it has grown to include all
184 kinds of basic applications for the foundation of a GNU internet.")
185 (license license:gpl3+)
186 (home-page "https://gnunet.org/")))