1 ;;; This file is part of GNUnet.
2 ;;; Copyright (C) 2016, 2017, 2018 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.
24 (guix build-system gnu)
26 ((guix build utils) #:select (with-directory-excursion))
28 (guix utils) ; current-source-directory
31 (gnu packages autotools)
34 (gnu packages compression)
36 (gnu packages databases)
38 (gnu packages gettext)
43 (gnu packages gnuzilla)
45 (gnu packages gstreamer)
49 (gnu packages image-viewers)
51 (gnu packages libunistring)
54 (gnu packages multiprecision)
56 (gnu packages pkg-config)
57 (gnu packages pulseaudio)
60 (gnu packages texinfo)
67 ((guix licenses) #:prefix license:))
69 (define %source-dir (current-source-directory))
71 (define gnunet-dev-env
73 (select? (delay (or (git-predicate
74 (current-source-directory))
79 (version (string-append "git" revision))
82 (string-append (getcwd))
87 ("gstreamer" ,gstreamer)
88 ("gst-plugins-base" ,gst-plugins-base)
89 ("gnutls/dane" ,gnutls/dane)
90 ("iptables" ,iptables)
91 ("libextractor" ,libextractor)
92 ("libgcrypt" ,libgcrypt)
94 ("libmicrohttpd" ,libmicrohttpd)
96 ("libunistring" ,libunistring)
99 ("pulseaudio" ,pulseaudio)
101 ("postgresql" ,postgresql)
105 ("python-2" ,python-2) ; tests and gnunet-qr
110 ("bluez" ,bluez) ; for optional bluetooth feature
112 ;; ("texlive" ,texlive) ;FIXME: minimize.
113 ("texlive-tiny" ,texlive-tiny) ;; Seems to be enough for _just_ info output.
114 ("miniupnpc" ,miniupnpc)
117 `(("pkg-config" ,pkg-config)
118 ("autoconf" ,autoconf)
119 ("automake" ,automake)
120 ("gnu-gettext" ,gnu-gettext)
122 ("texinfo" ,texinfo-5) ; Debian stable: 5.2
123 ("libtool" ,libtool)))
124 (outputs '("out" "debug"))
127 ;;(list (string-append "--with-nssdir=" %output "/lib")
128 ;;"--enable-gcc-hardening"
129 ;;"--enable-linker-hardening"
130 ;;;;"--enable-documentation-only")
131 ;;;"--enable-logging=verbose"
132 ;;;"CFLAGS=-ggdb -O0")
134 ;; swap check and install phases and set paths to installed bin
135 (modify-phases %standard-phases
136 (add-after 'unpack 'patch-bin-sh
138 (for-each (lambda (f) (chmod f #o755))
139 (find-files "po" ""))
141 (add-after 'patch-bin-sh 'bootstrap
143 (zero? (system* "sh" "bootstrap"))))
144 ;;(add-before 'build 'chdir
146 ;; (chdir "doc/documentation")))
148 ;; XXX: https://gnunet.org/bugs/view.php?id=4619