diff options
Diffstat (limited to 'guix-env.scm')
-rw-r--r-- | guix-env.scm | 117 |
1 files changed, 117 insertions, 0 deletions
diff --git a/guix-env.scm b/guix-env.scm new file mode 100644 index 00000000..9bca8070 --- /dev/null +++ b/guix-env.scm | |||
@@ -0,0 +1,117 @@ | |||
1 | ;;; This file is part of GNUnet. | ||
2 | ;;; Copyright (C) 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 | (use-modules | ||
20 | (ice-9 popen) | ||
21 | (ice-9 match) | ||
22 | (ice-9 rdelim) | ||
23 | (guix packages) | ||
24 | (guix build-system gnu) | ||
25 | (guix gexp) | ||
26 | ((guix build utils) #:select (with-directory-excursion)) | ||
27 | (guix git-download) | ||
28 | (guix utils) ; current-source-directory | ||
29 | (gnu packages) | ||
30 | (gnu packages aidc) | ||
31 | (gnu packages autotools) | ||
32 | (gnu packages backup) | ||
33 | (gnu packages base) | ||
34 | (gnu packages compression) | ||
35 | (gnu packages curl) | ||
36 | (gnu packages databases) | ||
37 | (gnu packages file) | ||
38 | (gnu packages gettext) | ||
39 | (gnu packages glib) | ||
40 | (gnu packages gnome) | ||
41 | (gnu packages gnunet) | ||
42 | (gnu packages gnupg) | ||
43 | (gnu packages gnuzilla) | ||
44 | (gnu packages groff) | ||
45 | (gnu packages gstreamer) | ||
46 | (gnu packages gtk) | ||
47 | (gnu packages guile) | ||
48 | (gnu packages image) | ||
49 | (gnu packages image-viewers) | ||
50 | (gnu packages libidn) | ||
51 | (gnu packages libunistring) | ||
52 | (gnu packages linux) | ||
53 | (gnu packages maths) | ||
54 | (gnu packages multiprecision) | ||
55 | (gnu packages perl) | ||
56 | (gnu packages pkg-config) | ||
57 | (gnu packages pulseaudio) | ||
58 | (gnu packages python) | ||
59 | (gnu packages tex) | ||
60 | (gnu packages texinfo) | ||
61 | (gnu packages tex) | ||
62 | (gnu packages tls) | ||
63 | (gnu packages upnp) | ||
64 | (gnu packages video) | ||
65 | (gnu packages web) | ||
66 | (gnu packages xiph) | ||
67 | ((guix licenses) #:prefix license:)) | ||
68 | |||
69 | ;; Named "guix-env", but not really "env" yet. | ||
70 | |||
71 | (define %source-dir (dirname (current-filename))) | ||
72 | |||
73 | (define gnunet-website-git | ||
74 | (let* ((revision "1")) | ||
75 | (package | ||
76 | (name "gnunet-website-git") | ||
77 | (version (string-append "0.0.0-" revision "." "dev")) | ||
78 | (source | ||
79 | (local-file %source-dir | ||
80 | #:recursive? #t)) | ||
81 | ;; FIXME: Switch to python-build-system! | ||
82 | (build-system gnu-build-system) | ||
83 | (native-inputs | ||
84 | `(("python-jinja2" ,python-jinja2) | ||
85 | ("python-babel" ,python-babel) | ||
86 | ("gettext-minimal" ,gettext-minimal) | ||
87 | ("python" ,python))) | ||
88 | (arguments | ||
89 | `(#:phases | ||
90 | (modify-phases %standard-phases | ||
91 | (add-after 'unpack 'po-file-chmod | ||
92 | (lambda _ | ||
93 | ;; Make sure 'msgmerge' can modify the PO files. | ||
94 | (for-each (lambda (po) | ||
95 | (chmod po #o666)) | ||
96 | (find-files "." "\\.po$")))) | ||
97 | (replace 'configure | ||
98 | (lambda* (#:key outputs inputs #:allow-other-keys) | ||
99 | (let ((pystore (assoc-ref inputs "python")) | ||
100 | (pyver ,(version-major+minor (package-version python)))) | ||
101 | (substitute* "Makefile" | ||
102 | (("env PYTHONPATH=\".\"") | ||
103 | (string-append | ||
104 | "env PYTHONPATH=\"" | ||
105 | (getenv "PYTHONPATH") | ||
106 | ":" | ||
107 | "." | ||
108 | "\"")))))) | ||
109 | ;; FIXME: Implement small testsuite. | ||
110 | (delete 'check)))) | ||
111 | (synopsis "GNUnet website generation") | ||
112 | (description | ||
113 | "GNUnet-website builds the website.") | ||
114 | (license #f) | ||
115 | (home-page "https://gnunet.org")))) | ||
116 | |||
117 | gnunet-website-git | ||