diff options
Diffstat (limited to 'contrib/packages/guix/guix-env.scm')
-rw-r--r-- | contrib/packages/guix/guix-env.scm | 210 |
1 files changed, 0 insertions, 210 deletions
diff --git a/contrib/packages/guix/guix-env.scm b/contrib/packages/guix/guix-env.scm deleted file mode 100644 index 8f45512e1..000000000 --- a/contrib/packages/guix/guix-env.scm +++ /dev/null | |||
@@ -1,210 +0,0 @@ | |||
1 | ;;; This file is part of GNUnet. | ||
2 | ;;; Copyright (C) 2016, 2017 GNUnet e.V. | ||
3 | ;;; | ||
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. | ||
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 | ;;; General Public License for more details. | ||
13 | ;;; | ||
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. | ||
18 | ;;; | ||
19 | ;; Guix package for GNUnet development | ||
20 | ;; | ||
21 | ;; INSTALL | ||
22 | ;; ------- | ||
23 | ;; | ||
24 | ;; To build and install the package in the user environment, use: | ||
25 | ;; | ||
26 | ;; guix package --install-from-file=guix-env.scm | ||
27 | ;; | ||
28 | ;; BUILD ONLY | ||
29 | ;; ---------- | ||
30 | ;; | ||
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 | ||
33 | ;; your PATH. | ||
34 | ;; | ||
35 | ;; cd contrib/packages/guix | ||
36 | ;; guix build -f guix-env.scm | ||
37 | ;; | ||
38 | ;; We'd like to provide advanced functions such as guix environment specific | ||
39 | ;; gnunet-git package and usage of gnunet-gtk-git, but this is subject | ||
40 | ;; to tests right now. | ||
41 | |||
42 | (use-modules | ||
43 | (ice-9 popen) | ||
44 | (ice-9 match) | ||
45 | (ice-9 rdelim) | ||
46 | (guix packages) | ||
47 | (guix build-system gnu) | ||
48 | (guix gexp) | ||
49 | ((guix build utils) #:select (with-directory-excursion)) | ||
50 | (guix git-download) | ||
51 | (guix utils) ; current-source-directory | ||
52 | (gnu packages) | ||
53 | (gnu packages aidc) | ||
54 | (gnu packages autotools) | ||
55 | (gnu packages backup) | ||
56 | (gnu packages base) | ||
57 | (gnu packages compression) | ||
58 | (gnu packages curl) | ||
59 | (gnu packages databases) | ||
60 | (gnu packages file) | ||
61 | (gnu packages gettext) | ||
62 | (gnu packages glib) | ||
63 | (gnu packages gnome) | ||
64 | (gnu packages gnunet) | ||
65 | (gnu packages gnupg) | ||
66 | (gnu packages gnuzilla) | ||
67 | (gnu packages groff) | ||
68 | (gnu packages gstreamer) | ||
69 | (gnu packages gtk) | ||
70 | (gnu packages guile) | ||
71 | (gnu packages image) | ||
72 | (gnu packages image-viewers) | ||
73 | (gnu packages libidn) | ||
74 | (gnu packages libunistring) | ||
75 | (gnu packages linux) | ||
76 | (gnu packages maths) | ||
77 | (gnu packages multiprecision) | ||
78 | (gnu packages perl) | ||
79 | (gnu packages pkg-config) | ||
80 | (gnu packages pulseaudio) | ||
81 | (gnu packages python) | ||
82 | (gnu packages tex) | ||
83 | (gnu packages texinfo) | ||
84 | (gnu packages tex) | ||
85 | (gnu packages tls) | ||
86 | (gnu packages video) | ||
87 | (gnu packages web) | ||
88 | (gnu packages xiph) | ||
89 | ((guix licenses) #:prefix license:)) | ||
90 | |||
91 | (define %source-dir (string-append (current-source-directory) | ||
92 | "/../../../")) | ||
93 | |||
94 | (define gnunet-git | ||
95 | (let* ((revision "3") | ||
96 | (select? (delay (or (git-predicate | ||
97 | (string-append (current-source-directory) | ||
98 | "/../../../")) | ||
99 | source-file?)))) | ||
100 | (package | ||
101 | (name "gnunet-git") | ||
102 | (version (string-append "0.10.1-" revision "." "dev")) | ||
103 | (source | ||
104 | (local-file ;;"../../.." | ||
105 | ;;%source-dir | ||
106 | ;;(string-append (getcwd) "/../../../") | ||
107 | (string-append (getcwd)) ;drrty hack and this assumes one static position FIXME! | ||
108 | #:recursive? #t)) | ||
109 | ;;#:select? (git-predicate %source-dir))) | ||
110 | ;;#:select? (force select?))) | ||
111 | (build-system gnu-build-system) | ||
112 | (inputs | ||
113 | `(("glpk" ,glpk) | ||
114 | ("gnurl" ,gnurl) | ||
115 | ("gstreamer" ,gstreamer) | ||
116 | ("gst-plugins-base" ,gst-plugins-base) | ||
117 | ("gnutls" ,gnutls) ;Change to gnutls/dane once it is merged. | ||
118 | ("libextractor" ,libextractor) | ||
119 | ("libgcrypt" ,libgcrypt) | ||
120 | ("libidn" ,libidn) | ||
121 | ("libmicrohttpd" ,libmicrohttpd) | ||
122 | ("libltdl" ,libltdl) | ||
123 | ("libunistring" ,libunistring) | ||
124 | ("openssl" ,openssl) | ||
125 | ("opus" ,opus) | ||
126 | ("pulseaudio" ,pulseaudio) | ||
127 | ("sqlite" ,sqlite) | ||
128 | ("postgresql" ,postgresql) | ||
129 | ("mysql" ,mysql) | ||
130 | ("zlib" ,zlib) | ||
131 | ("perl" ,perl) | ||
132 | ("python-2" ,python-2) ; tests and gnunet-qr | ||
133 | ("jansson" ,jansson) | ||
134 | ("nss" ,nss) | ||
135 | ("glib" ,glib "bin") | ||
136 | ("gmp" ,gmp) | ||
137 | ("bluez" ,bluez) ; for optional bluetooth feature | ||
138 | ("glib" ,glib) | ||
139 | ;; There are currently no binary substitutes for texlive on | ||
140 | ;; hydra.gnu.org or its mirrors due to its size. Uncomment if you need it. | ||
141 | ;;("texlive-minimal" ,texlive-minimal) ; optional. | ||
142 | ("texlive" ,texlive) | ||
143 | ("libogg" ,libogg))) | ||
144 | (native-inputs | ||
145 | `(("pkg-config" ,pkg-config) | ||
146 | ("autoconf" ,autoconf) | ||
147 | ("automake" ,automake) | ||
148 | ("gnu-gettext" ,gnu-gettext) | ||
149 | ("which" ,which) | ||
150 | ("texinfo" ,texinfo-5) ; Debian stable: 5.2 | ||
151 | ("libtool" ,libtool))) | ||
152 | ;; TODO: To make use of out:debug, which carries the symbols, | ||
153 | ;; this file needs to fixed. | ||
154 | (outputs '("out" "debug")) | ||
155 | (arguments | ||
156 | `(#:configure-flags | ||
157 | (list (string-append "--with-nssdir=" %output "/lib");"/lib/gnunet/nss") | ||
158 | "--enable-gcc-hardening" | ||
159 | "--enable-linker-hardening" | ||
160 | |||
161 | "--enable-poisoning" | ||
162 | "--enable-sanitizer" | ||
163 | "--enable-experimental" | ||
164 | "--enable-logging=verbose" | ||
165 | "CFLAGS=-ggdb -O0") | ||
166 | ;;#:parallel-tests? #f ; parallel building seems to fail | ||
167 | ;;#:tests? #f ; fail: test_gnunet_statistics.py | ||
168 | #:phases | ||
169 | ;; swap check and install phases and set paths to installed bin | ||
170 | (modify-phases %standard-phases | ||
171 | (add-after 'unpack 'patch-bin-sh | ||
172 | (lambda _ | ||
173 | (substitute* "bootstrap" | ||
174 | (("contrib/pogen.sh") "sh contrib/pogen.sh")) | ||
175 | (for-each (lambda (f) (chmod f #o755)) | ||
176 | (find-files "po" "")) | ||
177 | #t)) | ||
178 | (add-after 'patch-bin-sh 'bootstrap | ||
179 | (lambda _ | ||
180 | (zero? (system* "sh" "bootstrap")))) | ||
181 | ;; (add-after 'install 'install-lib-nss | ||
182 | ;; (lambda* (#:key outputs #:allow-other-keys) | ||
183 | ;; (let* ((out (assoc-ref outputs "out")) | ||
184 | ;; (lib (string-append out "/lib/nss/"))) | ||
185 | ;; (mkdir-p lib) | ||
186 | ;; (copy-recursively "src/gns/nss/" lib) | ||
187 | ;; (install-file "ping" "combobreak")) | ||
188 | ;; #t)) | ||
189 | (delete 'check)))) | ||
190 | ;; XXX: https://gnunet.org/bugs/view.php?id=4619 | ||
191 | ;; (add-after 'install 'set-path-for-check | ||
192 | ;; (lambda* (#:key outputs #:allow-other-keys) | ||
193 | ;; (let* ((out (assoc-ref outputs "out")) | ||
194 | ;; (bin (string-append out "/bin")) | ||
195 | ;; (lib (string-append out "/lib"))) | ||
196 | ;; (setenv "GNUNET_PREFIX" lib) | ||
197 | ;; (setenv "PATH" (string-append (getenv "PATH") ":" bin)) | ||
198 | ;; (zero? (system* "make" "check")))))))) | ||
199 | (synopsis "Secure, decentralized, peer-to-peer networking framework") | ||
200 | (description | ||
201 | "GNUnet is a framework for secure peer-to-peer networking. The | ||
202 | high-level goal is to provide a strong foundation of free software for a | ||
203 | global, distributed network that provides security and privacy. GNUnet in | ||
204 | that sense aims to replace the current internet protocol stack. Along with | ||
205 | an application for secure publication of files, it has grown to include all | ||
206 | kinds of basic applications for the foundation of a GNU internet.") | ||
207 | (license license:gpl3+) | ||
208 | (home-page "https://gnunet.org/")))) | ||
209 | |||
210 | gnunet-git | ||