Commit | Line | Data |
---|---|---|
bbe8d8f0 | 1 | ;;; GNU Guix --- Functional package management for GNU |
59127916 | 2 | ;;; Copyright © 2013, 2014, 2015, 2016, 2017, 2018 Ludovic Courtès <ludo@gnu.org> |
5dbeccf5 | 3 | ;;; Copyright © 2015, 2017 Ricardo Wurmus <rekado@elephly.net> |
513d35f1 | 4 | ;;; Copyright © 2017 Muriithi Frederick Muriuki <fredmanglis@gmail.com> |
49d9fce8 | 5 | ;;; Copyright © 2017, 2018 Oleg Pykhalov <go.wigust@gmail.com> |
58a308e0 | 6 | ;;; Copyright © 2017 Roel Janssen <roel@gnu.org> |
7ed6343f | 7 | ;;; Copyright © 2017, 2018 Tobias Geerinckx-Rice <me@tobias.gr> |
76fa5e04 | 8 | ;;; Copyright © 2018 Julien Lepiller <julien@lepiller.eu> |
113e9bc5 | 9 | ;;; Copyright © 2018 Rutger Helling <rhelling@mykolab.com> |
3d391309 | 10 | ;;; Copyright © 2018 Sou Bunnbu <iyzsong@member.fsf.org> |
6f1ce09d | 11 | ;;; Copyright © 2018 Eric Bavier <bavier@member.fsf.org> |
bbe8d8f0 LC |
12 | ;;; |
13 | ;;; This file is part of GNU Guix. | |
14 | ;;; | |
15 | ;;; GNU Guix is free software; you can redistribute it and/or modify it | |
16 | ;;; under the terms of the GNU General Public License as published by | |
17 | ;;; the Free Software Foundation; either version 3 of the License, or (at | |
18 | ;;; your option) any later version. | |
19 | ;;; | |
20 | ;;; GNU Guix is distributed in the hope that it will be useful, but | |
21 | ;;; WITHOUT ANY WARRANTY; without even the implied warranty of | |
22 | ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
23 | ;;; GNU General Public License for more details. | |
24 | ;;; | |
25 | ;;; You should have received a copy of the GNU General Public License | |
26 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. | |
27 | ||
28 | (define-module (gnu packages package-management) | |
8a43ff10 | 29 | #:use-module (gnu packages) |
37756a13 | 30 | #:use-module (gnu packages acl) |
3d391309 SB |
31 | #:use-module (gnu packages attr) |
32 | #:use-module (gnu packages avahi) | |
37756a13 | 33 | #:use-module (gnu packages autotools) |
e3e1ecf6 | 34 | #:use-module (gnu packages backup) |
37756a13 | 35 | #:use-module (gnu packages bdw-gc) |
3d391309 | 36 | #:use-module (gnu packages bison) |
3e5750af | 37 | #:use-module (gnu packages bootstrap) ;for 'bootstrap-guile-origin' |
ac257f12 | 38 | #:use-module (gnu packages check) |
38cf2ba0 | 39 | #:use-module (gnu packages compression) |
37756a13 | 40 | #:use-module (gnu packages cpio) |
e6c8199b | 41 | #:use-module (gnu packages crypto) |
37756a13 | 42 | #:use-module (gnu packages curl) |
5f96f303 | 43 | #:use-module (gnu packages databases) |
3d391309 | 44 | #:use-module (gnu packages docbook) |
49d9fce8 | 45 | #:use-module (gnu packages emacs) |
37756a13 | 46 | #:use-module (gnu packages file) |
480af4d6 | 47 | #:use-module (gnu packages gettext) |
98a11b7f | 48 | #:use-module (gnu packages glib) |
cb390925 | 49 | #:use-module (gnu packages gnome) |
37756a13 TGR |
50 | #:use-module (gnu packages gnupg) |
51 | #:use-module (gnu packages gnuzilla) | |
52 | #:use-module (gnu packages graphviz) | |
53 | #:use-module (gnu packages guile) | |
cb390925 | 54 | #:use-module (gnu packages linux) |
58a308e0 | 55 | #:use-module (gnu packages lisp) |
37756a13 | 56 | #:use-module (gnu packages man) |
e3e1ecf6 | 57 | #:use-module (gnu packages nettle) |
37756a13 | 58 | #:use-module (gnu packages patchutils) |
fcb0109d | 59 | #:use-module (gnu packages perl) |
5ccde207 | 60 | #:use-module (gnu packages perl-check) |
37756a13 TGR |
61 | #:use-module (gnu packages pkg-config) |
62 | #:use-module (gnu packages popt) | |
e3e1ecf6 | 63 | #:use-module (gnu packages python) |
1b2f753d | 64 | #:use-module (gnu packages python-web) |
37756a13 TGR |
65 | #:use-module (gnu packages serialization) |
66 | #:use-module (gnu packages ssh) | |
67 | #:use-module (gnu packages texinfo) | |
33dc54b0 | 68 | #:use-module (gnu packages time) |
04eb0fab | 69 | #:use-module (gnu packages tls) |
5dbeccf5 | 70 | #:use-module (gnu packages vim) |
37756a13 | 71 | #:use-module (gnu packages web) |
cb390925 | 72 | #:use-module (gnu packages xml) |
37756a13 TGR |
73 | #:use-module (guix build-system emacs) |
74 | #:use-module (guix build-system gnu) | |
44118720 | 75 | #:use-module (guix build-system meson) |
37756a13 TGR |
76 | #:use-module (guix build-system python) |
77 | #:use-module (guix download) | |
78 | #:use-module (guix gexp) | |
79 | #:use-module (guix git-download) | |
7ed6343f | 80 | #:use-module ((guix licenses) #:prefix license:) |
37756a13 TGR |
81 | #:use-module (guix packages) |
82 | #:use-module (guix utils) | |
83 | #:use-module (ice-9 match) | |
84 | #:use-module (srfi srfi-1)) | |
bbe8d8f0 | 85 | |
39de700c LC |
86 | (define (boot-guile-uri arch) |
87 | "Return the URI for the bootstrap Guile tarball for ARCH." | |
aef81a81 LC |
88 | (cond ((string=? "armhf" arch) |
89 | (string-append "http://alpha.gnu.org/gnu/guix/bootstrap/" | |
90 | arch "-linux" | |
91 | "/20150101/guile-2.0.11.tar.xz")) | |
92 | ((string=? "aarch64" arch) | |
b31b0155 LC |
93 | (string-append "http://alpha.gnu.org/gnu/guix/bootstrap/" |
94 | arch "-linux/20170217/guile-2.0.14.tar.xz")) | |
aef81a81 LC |
95 | (else |
96 | (string-append "http://alpha.gnu.org/gnu/guix/bootstrap/" | |
97 | arch "-linux" | |
98 | "/20131110/guile-2.0.9.tar.xz")))) | |
39de700c | 99 | |
994a1494 LC |
100 | (define-public guix |
101 | ;; Latest version of Guix, which may or may not correspond to a release. | |
94fa8d76 LC |
102 | ;; Note: the 'update-guix-package.scm' script expects this definition to |
103 | ;; start precisely like this. | |
c845323d | 104 | (let ((version "0.16.0") |
439a4c75 LC |
105 | (commit "5de5f8184530fd7e0e88514ae35cb2e9305910c1") |
106 | (revision 5)) | |
994a1494 LC |
107 | (package |
108 | (name "guix") | |
ab2419e5 | 109 | |
994a1494 LC |
110 | (version (if (zero? revision) |
111 | version | |
112 | (string-append version "-" | |
113 | (number->string revision) | |
4b7917f2 | 114 | "." (string-take commit 7)))) |
994a1494 LC |
115 | (source (origin |
116 | (method git-fetch) | |
117 | (uri (git-reference | |
118 | (url "https://git.savannah.gnu.org/r/guix.git") | |
119 | (commit commit))) | |
120 | (sha256 | |
121 | (base32 | |
439a4c75 | 122 | "1hxa1irb8jfjas2yajxilbhnn7rbg38zkbcyr71mwpxgcizg0bdj")) |
994a1494 LC |
123 | (file-name (string-append "guix-" version "-checkout")))) |
124 | (build-system gnu-build-system) | |
125 | (arguments | |
126 | `(#:configure-flags (list | |
127 | "--localstatedir=/var" | |
128 | "--sysconfdir=/etc" | |
129 | (string-append "--with-bash-completion-dir=" | |
130 | (assoc-ref %outputs "out") | |
131 | "/etc/bash_completion.d") | |
132 | (string-append "--with-libgcrypt-prefix=" | |
133 | (assoc-ref %build-inputs | |
134 | "libgcrypt")) | |
135 | ||
136 | ;; Set 'DOT_USER_PROGRAM' to the empty string so | |
137 | ;; we don't keep a reference to Graphviz, whose | |
138 | ;; closure is pretty big (too big for the GuixSD | |
139 | ;; installation image.) | |
4b7917f2 LC |
140 | "ac_cv_path_DOT_USER_PROGRAM=dot" |
141 | ||
142 | ;; To avoid problems with the length of shebangs, | |
143 | ;; choose a fixed-width and short directory name | |
144 | ;; for tests. | |
145 | "ac_cv_guix_test_root=/tmp/guix-tests") | |
994a1494 LC |
146 | #:parallel-tests? #f ;work around <http://bugs.gnu.org/21097> |
147 | ||
148 | #:modules ((guix build gnu-build-system) | |
149 | (guix build utils) | |
c9117162 | 150 | (srfi srfi-26) |
994a1494 LC |
151 | (ice-9 popen) |
152 | (ice-9 rdelim)) | |
153 | ||
154 | #:phases (modify-phases %standard-phases | |
189be331 | 155 | (replace 'bootstrap |
994a1494 LC |
156 | (lambda _ |
157 | ;; Make sure 'msgmerge' can modify the PO files. | |
158 | (for-each (lambda (po) | |
159 | (chmod po #o666)) | |
160 | (find-files "." "\\.po$")) | |
ab2419e5 | 161 | |
8833a647 LC |
162 | (patch-shebang "build-aux/git-version-gen") |
163 | ||
91c619eb LC |
164 | (call-with-output-file ".tarball-version" |
165 | (lambda (port) | |
166 | (display ,version port))) | |
167 | ||
92fcb831 | 168 | (invoke "sh" "bootstrap"))) |
59127916 | 169 | (add-before 'check 'copy-bootstrap-guile |
994a1494 | 170 | (lambda* (#:key system inputs #:allow-other-keys) |
59127916 LC |
171 | ;; Copy the bootstrap guile tarball in the store used |
172 | ;; by the test suite. | |
173 | (define (intern tarball) | |
174 | (let ((base (strip-store-file-name tarball))) | |
175 | (copy-file tarball base) | |
176 | (invoke "./test-env" "guix" "download" | |
177 | (string-append "file://" (getcwd) | |
178 | "/" base)) | |
179 | (delete-file base))) | |
39de700c | 180 | |
bbe8d8f0 | 181 | |
59127916 LC |
182 | (intern (assoc-ref inputs "boot-guile")) |
183 | ||
184 | ;; On x86_64 some tests need the i686 Guile. | |
185 | ,@(if (and (not (%current-target-system)) | |
186 | (string=? (%current-system) | |
187 | "x86_64-linux")) | |
188 | '((intern (assoc-ref inputs "boot-guile/i686"))) | |
189 | '()) | |
994a1494 | 190 | #t)) |
40e89f5b | 191 | (add-after 'unpack 'disable-failing-tests |
994a1494 LC |
192 | ;; XXX FIXME: These tests fail within the build container. |
193 | (lambda _ | |
194 | (substitute* "tests/syscalls.scm" | |
195 | (("^\\(test-(assert|equal) \"(clone|setns|pivot-root)\"" all) | |
196 | (string-append "(test-skip 1)\n" all))) | |
197 | (substitute* "tests/containers.scm" | |
198 | (("^\\(test-(assert|equal)" all) | |
199 | (string-append "(test-skip 1)\n" all))) | |
200 | (when (file-exists? "tests/guix-environment-container.sh") | |
201 | (substitute* "tests/guix-environment-container.sh" | |
202 | (("guix environment --version") | |
203 | "exit 77\n"))) | |
204 | #t)) | |
205 | (add-before 'check 'set-SHELL | |
206 | (lambda _ | |
207 | ;; 'guix environment' tests rely on 'SHELL' having a | |
208 | ;; correct value, so set it. | |
209 | (setenv "SHELL" (which "sh")) | |
210 | #t)) | |
211 | (add-after 'install 'wrap-program | |
212 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
dd1640ee LC |
213 | ;; Make sure the 'guix' command finds GnuTLS, |
214 | ;; Guile-JSON, and Guile-Git automatically. | |
994a1494 LC |
215 | (let* ((out (assoc-ref outputs "out")) |
216 | (guile (assoc-ref inputs "guile")) | |
ca719424 | 217 | (gcrypt (assoc-ref inputs "guile-gcrypt")) |
994a1494 | 218 | (json (assoc-ref inputs "guile-json")) |
c5a2e1ff | 219 | (sqlite (assoc-ref inputs "guile-sqlite3")) |
9ca8aa38 | 220 | (git (assoc-ref inputs "guile-git")) |
dd1640ee LC |
221 | (bs (assoc-ref inputs |
222 | "guile-bytestructures")) | |
994a1494 LC |
223 | (ssh (assoc-ref inputs "guile-ssh")) |
224 | (gnutls (assoc-ref inputs "gnutls")) | |
ca719424 LC |
225 | (deps (list gcrypt json sqlite gnutls |
226 | git bs ssh)) | |
994a1494 LC |
227 | (effective |
228 | (read-line | |
229 | (open-pipe* OPEN_READ | |
230 | (string-append guile "/bin/guile") | |
231 | "-c" "(display (effective-version))"))) | |
c9117162 LC |
232 | (path (string-join |
233 | (map (cut string-append <> | |
234 | "/share/guile/site/" | |
235 | effective) | |
6f1ce09d | 236 | (delete #f deps)) |
c9117162 LC |
237 | ":")) |
238 | (gopath (string-join | |
239 | (map (cut string-append <> | |
240 | "/lib/guile/" effective | |
241 | "/site-ccache") | |
6f1ce09d | 242 | (delete #f deps)) |
c9117162 | 243 | ":"))) |
61cdad35 | 244 | |
994a1494 LC |
245 | (wrap-program (string-append out "/bin/guix") |
246 | `("GUILE_LOAD_PATH" ":" prefix (,path)) | |
c9117162 | 247 | `("GUILE_LOAD_COMPILED_PATH" ":" prefix (,gopath))) |
61cdad35 | 248 | |
994a1494 LC |
249 | #t)))))) |
250 | (native-inputs `(("pkg-config" ,pkg-config) | |
a7db8540 | 251 | |
994a1494 LC |
252 | ;; XXX: Keep the development inputs here even though |
253 | ;; they're unnecessary, just so that 'guix environment | |
254 | ;; guix' always contains them. | |
464f5447 | 255 | ("autoconf" ,autoconf-wrapper) |
994a1494 LC |
256 | ("automake" ,automake) |
257 | ("gettext" ,gettext-minimal) | |
258 | ("texinfo" ,texinfo) | |
259 | ("graphviz" ,graphviz) | |
76fa5e04 JL |
260 | ("help2man" ,help2man) |
261 | ("po4a" ,po4a))) | |
994a1494 | 262 | (inputs |
3e5750af LC |
263 | `(("bzip2" ,bzip2) |
264 | ("gzip" ,gzip) | |
265 | ("zlib" ,zlib) ;for 'guix publish' | |
2d195e67 | 266 | |
3e5750af LC |
267 | ("sqlite" ,sqlite) |
268 | ("libgcrypt" ,libgcrypt) | |
4e80516c | 269 | |
2abd76e8 | 270 | ("guile" ,guile-2.2) |
bbe8d8f0 | 271 | |
59127916 LC |
272 | ;; Many tests rely on the 'guile-bootstrap' package, which is why we |
273 | ;; have it here. | |
274 | ("boot-guile" ,(bootstrap-guile-origin (%current-system))) | |
272c0709 CM |
275 | ;; Some of the tests use "unshare" when it is available. |
276 | ("util-linux" ,util-linux) | |
59127916 LC |
277 | ,@(if (and (not (%current-target-system)) |
278 | (string=? (%current-system) "x86_64-linux")) | |
279 | `(("boot-guile/i686" ,(bootstrap-guile-origin "i686-linux"))) | |
280 | '()))) | |
994a1494 | 281 | (propagated-inputs |
52cabc6f | 282 | `(("gnutls" ,gnutls) |
ca719424 | 283 | ("guile-gcrypt" ,guile-gcrypt) |
2252f087 | 284 | ("guile-json" ,guile-json) |
c5a2e1ff | 285 | ("guile-sqlite3" ,guile-sqlite3) |
9ca8aa38 LC |
286 | ("guile-ssh" ,guile-ssh) |
287 | ("guile-git" ,guile-git))) | |
f1082ec1 | 288 | |
994a1494 LC |
289 | (home-page "https://www.gnu.org/software/guix/") |
290 | (synopsis "Functional package manager for installed software packages and versions") | |
291 | (description | |
292 | "GNU Guix is a functional package manager for the GNU system, and is | |
c5779c93 | 293 | also a distribution thereof. It includes a virtual machine image. Besides |
79c311b8 | 294 | the usual package management features, it also supports transactional |
c5779c93 LC |
295 | upgrades and roll-backs, per-user profiles, and much more. It is based on |
296 | the Nix package manager.") | |
7ed6343f | 297 | (license license:gpl3+) |
994a1494 | 298 | (properties '((ftp-server . "alpha.gnu.org")))))) |
3ad9a0b1 | 299 | |
994a1494 LC |
300 | ;; Alias for backward compatibility. |
301 | (define-public guix-devel guix) | |
fcb0109d | 302 | |
baed9236 LC |
303 | (define-public guix-daemon |
304 | ;; This package is for internal consumption: it allows us to quickly build | |
305 | ;; the 'guix-daemon' program and use that in (guix self), used by 'guix | |
306 | ;; pull'. | |
307 | (package | |
308 | (inherit guix) | |
309 | (properties `((hidden? . #t))) | |
310 | (name "guix-daemon") | |
311 | ||
312 | ;; Use a minimum set of dependencies. | |
313 | (native-inputs | |
314 | (fold alist-delete (package-native-inputs guix) | |
315 | '("po4a" "graphviz" "help2man"))) | |
316 | (inputs | |
317 | `(("gnutls" ,gnutls) | |
318 | ("guile-git" ,guile-git) | |
5118e26f | 319 | ("guile-json" ,guile-json) |
3b0153bd | 320 | ("guile-gcrypt" ,guile-gcrypt) |
1fb947f6 LC |
321 | ,@(fold alist-delete (package-inputs guix) |
322 | '("boot-guile" "boot-guile/i686" "util-linux")))) | |
323 | ||
baed9236 LC |
324 | (propagated-inputs '()) |
325 | ||
326 | (arguments | |
327 | (substitute-keyword-arguments (package-arguments guix) | |
1fb947f6 LC |
328 | ((#:configure-flags flags '()) |
329 | ;; Pretend we have those libraries; we don't actually need them. | |
330 | `(append ,flags | |
331 | '("guix_cv_have_recent_guile_sqlite3=yes" | |
332 | "guix_cv_have_recent_guile_ssh=yes"))) | |
baed9236 LC |
333 | ((#:tests? #f #f) |
334 | #f) | |
335 | ((#:phases phases '%standard-phases) | |
336 | `(modify-phases ,phases | |
337 | (replace 'build | |
338 | (lambda _ | |
339 | (invoke "make" "nix/libstore/schema.sql.hh") | |
340 | (invoke "make" "-j" (number->string | |
341 | (parallel-job-count)) | |
342 | "guix-daemon"))) | |
343 | (delete 'copy-bootstrap-guile) | |
344 | (replace 'install | |
345 | (lambda* (#:key outputs #:allow-other-keys) | |
346 | (invoke "make" "install-binPROGRAMS" | |
0a9d1c5a | 347 | "install-nodist_pkglibexecSCRIPTS") |
baed9236 LC |
348 | |
349 | ;; We need to tell 'guix-daemon' which 'guix' command to use. | |
ed9d7cb4 LC |
350 | ;; Here we use a questionable hack where we hard-code root's |
351 | ;; current guix, which could be wrong (XXX). Note that scripts | |
352 | ;; like 'guix perform-download' do not run as root so we assume | |
353 | ;; that they have access to /var/guix/profiles/per-user/root. | |
baed9236 LC |
354 | (let ((out (assoc-ref outputs "out"))) |
355 | (substitute* (find-files (string-append out "/libexec")) | |
356 | (("exec \".*/bin/guix\"") | |
ed9d7cb4 | 357 | "exec /var/guix/profiles/per-user/root/current-guix/bin/guix")) |
baed9236 LC |
358 | #t))) |
359 | (delete 'wrap-program))))))) | |
360 | ||
82ce81ba LC |
361 | (define-public guile2.0-guix |
362 | (package | |
363 | (inherit guix) | |
364 | (name "guile2.0-guix") | |
365 | (inputs | |
366 | `(("guile" ,guile-2.0) | |
367 | ,@(alist-delete "guile" (package-inputs guix)))) | |
368 | (propagated-inputs | |
52cabc6f | 369 | `(("gnutls" ,gnutls/guile-2.0) |
c8e3651a | 370 | ("guile-gcrypt" ,guile2.0-gcrypt) |
82ce81ba | 371 | ("guile-json" ,guile2.0-json) |
c8e3651a | 372 | ("guile-sqlite3" ,guile2.0-sqlite3) |
9ca8aa38 LC |
373 | ("guile-ssh" ,guile2.0-ssh) |
374 | ("guile-git" ,guile2.0-git))))) | |
82ce81ba | 375 | |
6f1ce09d EB |
376 | (define-public guix-minimal |
377 | ;; A version of Guix which is built with the minimal set of dependencies, as | |
378 | ;; outlined in the README "Requirements" section. Intended as a CI job, so | |
379 | ;; marked as hidden. | |
380 | (let ((guix guile2.0-guix)) | |
381 | (hidden-package | |
382 | (package | |
383 | (inherit guix) | |
384 | (name "guix-minimal") | |
385 | (inputs | |
386 | `(("guile" ,guile-2.0.13) | |
387 | ,@(alist-delete "guile" (package-inputs guix)))) | |
388 | (propagated-inputs | |
389 | (fold alist-delete | |
390 | (package-propagated-inputs guix) | |
6776af04 | 391 | '("guile-ssh"))))))) |
6f1ce09d | 392 | |
04eb0fab LC |
393 | (define (source-file? file stat) |
394 | "Return true if FILE is likely a source file, false if it is a typical | |
395 | generated file." | |
396 | (define (wrong-extension? file) | |
397 | (or (string-suffix? "~" file) | |
398 | (member (file-extension file) | |
399 | '("o" "a" "lo" "so" "go")))) | |
400 | ||
401 | (match (basename file) | |
402 | ((or ".git" "autom4te.cache" "configure" "Makefile" "Makefile.in" ".libs") | |
403 | #f) | |
404 | ((? wrong-extension?) | |
405 | #f) | |
406 | (_ | |
407 | #t))) | |
408 | ||
04eb0fab | 409 | (define-public current-guix |
a9d5e4be CB |
410 | (let* ((repository-root (canonicalize-path |
411 | (string-append (current-source-directory) | |
412 | "/../.."))) | |
413 | (select? (delay (or (git-predicate repository-root) | |
414 | source-file?)))) | |
04eb0fab LC |
415 | (lambda () |
416 | "Return a package representing Guix built from the current source tree. | |
417 | This works by adding the current source tree to the store (after filtering it | |
418 | out) and returning a package that uses that as its 'source'." | |
419 | (package | |
420 | (inherit guix) | |
421 | (version (string-append (package-version guix) "+")) | |
a9d5e4be | 422 | (source (local-file repository-root "guix-current" |
04eb0fab LC |
423 | #:recursive? #t |
424 | #:select? (force select?))))))) | |
425 | ||
426 | \f | |
427 | ;;; | |
428 | ;;; Other tools. | |
429 | ;;; | |
430 | ||
fcb0109d LC |
431 | (define-public nix |
432 | (package | |
433 | (name "nix") | |
e6c8199b | 434 | (version "2.0.4") |
fcb0109d LC |
435 | (source (origin |
436 | (method url-fetch) | |
437 | (uri (string-append "http://nixos.org/releases/nix/nix-" | |
438 | version "/nix-" version ".tar.xz")) | |
439 | (sha256 | |
440 | (base32 | |
e6c8199b | 441 | "0ss9svxlh1pvrdmnqjvjyqjmbqmrdbyfarvbb14i9d4bggzl0r8n")))) |
fcb0109d | 442 | (build-system gnu-build-system) |
e6c8199b | 443 | (native-inputs `(("pkg-config" ,pkg-config))) |
fcb0109d | 444 | (inputs `(("curl" ,curl) |
e6c8199b | 445 | ("bzip2" ,bzip2) |
fcb0109d | 446 | ("libgc" ,libgc) |
e6c8199b SB |
447 | ("libseccomp" ,libseccomp) |
448 | ("libsodium" ,libsodium) | |
449 | ("openssl" ,openssl) | |
fcb0109d | 450 | ("sqlite" ,sqlite) |
e6c8199b | 451 | ("xz" ,xz))) |
775989c7 | 452 | (home-page "https://nixos.org/nix/") |
fcb0109d LC |
453 | (synopsis "The Nix package manager") |
454 | (description | |
455 | "Nix is a purely functional package manager. This means that it treats | |
456 | packages like values in purely functional programming languages such as | |
457 | Haskell—they are built by functions that don't have side-effects, and they | |
458 | never change after they have been built. Nix stores packages in the Nix | |
459 | store, usually the directory /nix/store, where each package has its own unique | |
460 | sub-directory.") | |
7ed6343f | 461 | (license license:lgpl2.1+))) |
8d422e25 | 462 | |
a881a40c LC |
463 | (define-public emacs-nix-mode |
464 | (package | |
a881a40c | 465 | (name "emacs-nix-mode") |
49d9fce8 OP |
466 | (version "1.2.2") |
467 | (source | |
468 | (origin | |
469 | (method url-fetch) | |
470 | (uri (string-append "https://github.com/NixOS/nix-mode/archive/v" | |
471 | version ".tar.gz")) | |
472 | (file-name (string-append name "-" version ".tar.gz")) | |
473 | (sha256 | |
474 | (base32 | |
475 | "06aqz0czznsj8835jqnk794sy2p6pa8kxfqwh0nl5d5vxivria6z")))) | |
a881a40c | 476 | (build-system emacs-build-system) |
49d9fce8 OP |
477 | (inputs |
478 | `(("emacs-company" ,emacs-company) | |
479 | ("emacs-mmm-mode" ,emacs-mmm-mode))) | |
480 | (home-page "https://github.com/NixOS/nix-mode") | |
a881a40c LC |
481 | (synopsis "Emacs major mode for editing Nix expressions") |
482 | (description "@code{nixos-mode} provides an Emacs major mode for editing | |
483 | Nix expressions. It supports syntax highlighting, indenting and refilling of | |
49d9fce8 OP |
484 | comments.") |
485 | (license license:lgpl2.1+))) | |
a881a40c | 486 | |
8d422e25 RW |
487 | (define-public stow |
488 | (package | |
489 | (name "stow") | |
ddfd70da | 490 | (version "2.2.2") |
8d422e25 RW |
491 | (source (origin |
492 | (method url-fetch) | |
493 | (uri (string-append "mirror://gnu/stow/stow-" | |
494 | version ".tar.gz")) | |
495 | (sha256 | |
496 | (base32 | |
ddfd70da | 497 | "1pvky9fayms4r6fhns8jd0vavszd7d979w62vfd5n88v614pdxz2")))) |
8d422e25 RW |
498 | (build-system gnu-build-system) |
499 | (inputs | |
500 | `(("perl" ,perl))) | |
501 | (native-inputs | |
502 | `(("perl-test-simple" ,perl-test-simple) | |
503 | ("perl-test-output" ,perl-test-output) | |
ddfd70da LC |
504 | ("perl-capture-tiny" ,perl-capture-tiny) |
505 | ("perl-io-stringy" ,perl-io-stringy))) | |
8d422e25 RW |
506 | (home-page "https://www.gnu.org/software/stow/") |
507 | (synopsis "Managing installed software packages") | |
508 | (description | |
509 | "GNU Stow is a symlink manager. It generates symlinks to directories | |
510 | of data and makes them appear to be merged into the same directory. It is | |
511 | typically used for managing software packages installed from source, by | |
512 | letting you install them apart in distinct directories and then create | |
513 | symlinks to the files in a common directory such as /usr/local.") | |
7ed6343f | 514 | (license license:gpl2+))) |
e3e1ecf6 LC |
515 | |
516 | (define-public rpm | |
517 | (package | |
518 | (name "rpm") | |
91a3c800 | 519 | (version "4.14.2") |
e3e1ecf6 LC |
520 | (source (origin |
521 | (method url-fetch) | |
623cc34c EB |
522 | (uri (string-append "http://ftp.rpm.org/releases/rpm-" |
523 | (version-major+minor version) ".x/rpm-" | |
e3e1ecf6 LC |
524 | version ".tar.bz2")) |
525 | (sha256 | |
526 | (base32 | |
91a3c800 | 527 | "0armd7dqr8bl0isx8l4xlylm7dikasmxhhcbz336fkp2x30w5jw0")))) |
e3e1ecf6 LC |
528 | (build-system gnu-build-system) |
529 | (arguments | |
530 | '(#:configure-flags '("--with-external-db" ;use the system's bdb | |
531 | "--enable-python" | |
532 | "--without-lua") | |
533 | #:phases (modify-phases %standard-phases | |
91a3c800 | 534 | (add-before 'configure 'set-nss-library-path |
e3e1ecf6 | 535 | (lambda* (#:key inputs #:allow-other-keys) |
91a3c800 | 536 | (let ((nss (assoc-ref inputs "nss"))) |
e3e1ecf6 LC |
537 | (setenv "LIBRARY_PATH" |
538 | (string-append (getenv "LIBRARY_PATH") ":" | |
539 | nss "/lib/nss")) | |
91a3c800 | 540 | #t)))))) |
e3e1ecf6 LC |
541 | (native-inputs |
542 | `(("pkg-config" ,pkg-config))) | |
543 | (inputs | |
544 | `(("python" ,python-2) | |
545 | ("xz" ,xz) | |
546 | ("bdb" ,bdb) | |
547 | ("popt" ,popt) | |
548 | ("nss" ,nss) | |
549 | ("nspr" ,nspr) | |
550 | ("libarchive" ,libarchive) | |
551 | ("nettle" ,nettle) ;XXX: actually a dependency of libarchive | |
552 | ("file" ,file) | |
553 | ("bzip2" ,bzip2) | |
554 | ("zlib" ,zlib) | |
555 | ("cpio" ,cpio))) | |
91a3c800 | 556 | (home-page "http://rpm.org/") |
e3e1ecf6 LC |
557 | (synopsis "The RPM Package Manager") |
558 | (description | |
559 | "The RPM Package Manager (RPM) is a command-line driven package | |
560 | management system capable of installing, uninstalling, verifying, querying, | |
561 | and updating computer software packages. Each software package consists of an | |
562 | archive of files along with information about the package like its version, a | |
563 | description. There is also a library permitting developers to manage such | |
564 | transactions from C or Python.") | |
565 | ||
566 | ;; The whole is GPLv2+; librpm itself is dual-licensed LGPLv2+ | GPLv2+. | |
7ed6343f | 567 | (license license:gpl2+))) |
e3e1ecf6 | 568 | |
08dcff47 LC |
569 | (define-public diffoscope |
570 | (package | |
571 | (name "diffoscope") | |
07fdf961 | 572 | (version "106") |
08dcff47 | 573 | (source (origin |
7dd21101 LF |
574 | (method url-fetch) |
575 | (uri (pypi-uri name version)) | |
08dcff47 LC |
576 | (sha256 |
577 | (base32 | |
07fdf961 | 578 | "0qrfp7nha2n2s9h5ibcf7rqji1amh4cqbcf80m6anim6p3ik26da")))) |
08dcff47 LC |
579 | (build-system python-build-system) |
580 | (arguments | |
7dd21101 LF |
581 | `(#:phases (modify-phases %standard-phases |
582 | ;; setup.py mistakenly requires python-magic from PyPi, even | |
583 | ;; though the Python bindings of `file` are sufficient. | |
584 | ;; https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=815844 | |
585 | (add-after 'unpack 'dependency-on-python-magic | |
586 | (lambda _ | |
587 | (substitute* "setup.py" | |
5dbeccf5 | 588 | (("'python-magic',") "")))) |
c1d80c7a JL |
589 | ;; This test is broken because our `file` package has a |
590 | ;; bug in berkeley-db file type detection. | |
591 | (add-after 'unpack 'remove-berkeley-test | |
592 | (lambda _ | |
593 | (delete-file "tests/comparators/test_berkeley_db.py") | |
594 | #t)) | |
5dbeccf5 RW |
595 | (add-after 'unpack 'embed-tool-references |
596 | (lambda* (#:key inputs #:allow-other-keys) | |
025519fa | 597 | (substitute* "diffoscope/comparators/utils/compare.py" |
5dbeccf5 RW |
598 | (("\\['xxd',") |
599 | (string-append "['" (which "xxd") "',"))) | |
600 | (substitute* "diffoscope/comparators/elf.py" | |
601 | (("@tool_required\\('readelf'\\)") "") | |
2af6be91 KK |
602 | (("get_tool_name\\('readelf'\\)") |
603 | (string-append "'" (which "readelf") "'"))) | |
604 | (substitute* "diffoscope/comparators/directory.py" | |
605 | (("@tool_required\\('stat'\\)") "") | |
606 | (("@tool_required\\('getfacl'\\)") "") | |
607 | (("\\['stat',") | |
608 | (string-append "['" (which "stat") "',")) | |
609 | (("\\['getfacl',") | |
610 | (string-append "['" (which "getfacl") "',"))) | |
63b7fbe1 GB |
611 | #t)) |
612 | (add-before 'check 'delete-failing-test | |
613 | (lambda _ | |
614 | (delete-file "tests/test_tools.py") ;this requires /sbin to be on the path | |
5dbeccf5 | 615 | #t))))) |
08dcff47 | 616 | (inputs `(("rpm" ,rpm) ;for rpm-python |
7dd21101 LF |
617 | ("python-file" ,python-file) |
618 | ("python-debian" ,python-debian) | |
619 | ("python-libarchive-c" ,python-libarchive-c) | |
620 | ("python-tlsh" ,python-tlsh) | |
2af6be91 | 621 | ("acl" ,acl) ;for getfacl |
5dbeccf5 | 622 | ("colordiff" ,colordiff) |
9fc513ad | 623 | ("xxd" ,xxd) |
08dcff47 LC |
624 | |
625 | ;; Below are modules used for tests. | |
7dd21101 LF |
626 | ("python-pytest" ,python-pytest) |
627 | ("python-chardet" ,python-chardet))) | |
54360c91 | 628 | (home-page "https://diffoscope.org/") |
08dcff47 LC |
629 | (synopsis "Compare files, archives, and directories in depth") |
630 | (description | |
631 | "Diffoscope tries to get to the bottom of what makes files or directories | |
632 | different. It recursively unpacks archives of many kinds and transforms | |
633 | various binary formats into more human readable forms to compare them. It can | |
634 | compare two tarballs, ISO images, or PDFs just as easily.") | |
7ed6343f | 635 | (license license:gpl3+))) |
513d35f1 MFM |
636 | |
637 | (define-public python-anaconda-client | |
638 | (package | |
639 | (name "python-anaconda-client") | |
640 | (version "1.6.3") | |
641 | (source | |
642 | (origin | |
643 | (method url-fetch) | |
644 | (uri (string-append "https://github.com/Anaconda-Platform/" | |
645 | "anaconda-client/archive/" version ".tar.gz")) | |
646 | (file-name (string-append name "-" version ".tar.gz")) | |
647 | (sha256 | |
648 | (base32 | |
649 | "1wv4wi6k5jz7rlwfgvgfdizv77x3cr1wa2aj0k1595g7fbhkjhz2")))) | |
650 | (build-system python-build-system) | |
651 | (propagated-inputs | |
652 | `(("python-pyyaml" ,python-pyyaml) | |
653 | ("python-requests" ,python-requests) | |
654 | ("python-clyent" ,python-clyent))) | |
655 | (native-inputs | |
656 | `(("python-pytz" ,python-pytz) | |
657 | ("python-dateutil" ,python-dateutil) | |
658 | ("python-mock" ,python-mock) | |
659 | ("python-coverage" ,python-coverage) | |
660 | ("python-pillow" ,python-pillow))) | |
661 | (arguments | |
662 | `(#:phases | |
663 | (modify-phases %standard-phases | |
664 | ;; This is needed for some tests. | |
665 | (add-before 'check 'set-up-home | |
666 | (lambda* _ (setenv "HOME" "/tmp") #t)) | |
667 | (add-before 'check 'remove-network-tests | |
668 | (lambda* _ | |
669 | ;; Remove tests requiring a network connection | |
670 | (let ((network-tests '("tests/test_upload.py" | |
671 | "tests/test_authorizations.py" | |
672 | "tests/test_login.py" | |
673 | "tests/test_whoami.py" | |
674 | "utils/notebook/tests/test_data_uri.py" | |
675 | "utils/notebook/tests/test_base.py" | |
676 | "utils/notebook/tests/test_downloader.py" | |
677 | "inspect_package/tests/test_conda.py"))) | |
678 | (with-directory-excursion "binstar_client" | |
679 | (for-each delete-file network-tests))) | |
680 | #t))))) | |
681 | (home-page "https://github.com/Anaconda-Platform/anaconda-client") | |
682 | (synopsis "Anaconda Cloud command line client library") | |
683 | (description | |
684 | "Anaconda Cloud command line client library provides an interface to | |
685 | Anaconda Cloud. Anaconda Cloud is useful for sharing packages, notebooks and | |
686 | environments.") | |
7ed6343f | 687 | (license license:bsd-3))) |
513d35f1 MFM |
688 | |
689 | (define-public python2-anaconda-client | |
690 | (package-with-python2 python-anaconda-client)) | |
4bc08b6e MFM |
691 | |
692 | (define-public python-conda | |
693 | (package | |
694 | (name "python-conda") | |
695 | (version "4.3.16") | |
696 | (source | |
697 | (origin | |
698 | (method url-fetch) | |
699 | (uri (string-append "https://github.com/conda/conda/archive/" | |
700 | version ".tar.gz")) | |
701 | (file-name (string-append name "-" version ".tar.gz")) | |
702 | (sha256 | |
703 | (base32 | |
704 | "1jq8hyrc5npb5sf4vw6s6by4602yj8f79vzpbwdfgpkn02nfk1dv")))) | |
705 | (build-system python-build-system) | |
706 | (arguments | |
707 | `(#:phases | |
708 | (modify-phases %standard-phases | |
709 | (add-before 'build 'create-version-file | |
710 | (lambda _ | |
711 | (with-output-to-file "conda/.version" | |
712 | (lambda () (display ,version))) | |
713 | #t)) | |
714 | (add-before 'check 'remove-failing-tests | |
715 | (lambda _ | |
716 | ;; These tests require internet/network access | |
717 | (let ((network-tests '("test_cli.py" | |
718 | "test_create.py" | |
719 | "test_export.py" | |
720 | "test_fetch.py" | |
721 | "test_history.py" | |
722 | "test_info.py" | |
723 | "test_install.py" | |
724 | "test_priority.py" | |
725 | "conda_env/test_cli.py" | |
726 | "conda_env/test_create.py" | |
727 | "conda_env/specs/test_notebook.py" | |
728 | "conda_env/utils/test_notebooks.py" | |
729 | "core/test_index.py" | |
730 | "core/test_repodata.py"))) | |
731 | (with-directory-excursion "tests" | |
732 | (for-each delete-file network-tests) | |
733 | ||
734 | ;; FIXME: This test creates a file, then deletes it and tests | |
735 | ;; that the file was deleted. For some reason it fails when | |
736 | ;; building with guix, but does not when you run it in the | |
737 | ;; directory left when you build with the --keep-failed | |
738 | ;; option | |
739 | (delete-file "gateways/disk/test_delete.py") | |
740 | #t)))) | |
741 | (replace 'check | |
742 | (lambda _ | |
743 | (setenv "HOME" "/tmp") | |
744 | (zero? (system* "py.test"))))))) | |
745 | (native-inputs | |
746 | `(("python-ruamel.yaml" ,python-ruamel.yaml) | |
747 | ("python-requests" ,python-requests) | |
748 | ("python-pycosat" ,python-pycosat) | |
749 | ("python-pytest" ,python-pytest) | |
750 | ("python-responses" ,python-responses) | |
751 | ("python-pyyaml" ,python-pyyaml) | |
752 | ("python-anaconda-client" ,python-anaconda-client))) | |
753 | (home-page "https://github.com/conda/conda") | |
754 | (synopsis "Cross-platform, OS-agnostic, system-level binary package manager") | |
755 | (description | |
756 | "Conda is a cross-platform, Python-agnostic binary package manager. It | |
757 | is the package manager used by Anaconda installations, but it may be used for | |
758 | other systems as well. Conda makes environments first-class citizens, making | |
759 | it easy to create independent environments even for C libraries. Conda is | |
760 | written entirely in Python. | |
761 | ||
762 | This package provides Conda as a library.") | |
7ed6343f | 763 | (license license:bsd-3))) |
4bc08b6e MFM |
764 | |
765 | (define-public python2-conda | |
2c5cf844 LF |
766 | (let ((base (package-with-python2 |
767 | (strip-python2-variant python-conda)))) | |
768 | (package (inherit base) | |
769 | (native-inputs | |
770 | `(("python2-enum34" ,python2-enum34) | |
771 | ,@(package-native-inputs base)))))) | |
84fcb580 MFM |
772 | |
773 | (define-public conda | |
774 | (package (inherit python-conda) | |
775 | (name "conda") | |
776 | (arguments | |
777 | (substitute-keyword-arguments (package-arguments python-conda) | |
778 | ((#:phases phases) | |
779 | `(modify-phases ,phases | |
780 | (replace 'build | |
781 | (lambda* (#:key outputs #:allow-other-keys) | |
782 | ;; This test fails when run before installation. | |
783 | (delete-file "tests/test_activate.py") | |
784 | ||
785 | ;; Fix broken defaults | |
786 | (substitute* "conda/base/context.py" | |
787 | (("return sys.prefix") | |
788 | (string-append "return \"" (assoc-ref outputs "out") "\"")) | |
789 | (("return (prefix_is_writable\\(self.root_prefix\\))" _ match) | |
790 | (string-append "return False if self.root_prefix == self.conda_prefix else " | |
791 | match))) | |
792 | ||
793 | ;; The util/setup-testing.py is used to build conda in | |
794 | ;; application form, rather than the default, library form. | |
795 | ;; With this, we are able to run commands like `conda --help` | |
796 | ;; directly on the command line | |
797 | (zero? (system* "python" "utils/setup-testing.py" "build_py")))) | |
798 | (replace 'install | |
799 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
800 | (let* ((out (assoc-ref outputs "out")) | |
801 | (target (string-append out "/lib/python" | |
802 | ((@@ (guix build python-build-system) | |
803 | get-python-version) | |
804 | (assoc-ref inputs "python")) | |
805 | "/site-packages/"))) | |
806 | ;; The installer aborts if the target directory is not on | |
807 | ;; PYTHONPATH. | |
808 | (setenv "PYTHONPATH" | |
809 | (string-append target ":" (getenv "PYTHONPATH"))) | |
810 | ||
811 | ;; And it aborts if the directory doesn't exist. | |
812 | (mkdir-p target) | |
813 | (zero? (system* "python" "utils/setup-testing.py" "install" | |
1d84500a RW |
814 | (string-append "--prefix=" out)))))) |
815 | ;; The "activate" and "deactivate" scripts don't need wrapping. | |
816 | ;; They also break when they are renamed. | |
817 | (add-after 'wrap 'undo-wrap | |
818 | (lambda* (#:key outputs #:allow-other-keys) | |
819 | (with-directory-excursion (string-append (assoc-ref outputs "out") "/bin/") | |
820 | (delete-file "deactivate") | |
821 | (rename-file ".deactivate-real" "deactivate") | |
822 | (delete-file "activate") | |
823 | (rename-file ".activate-real" "activate") | |
824 | #t))))))) | |
84fcb580 MFM |
825 | (description |
826 | "Conda is a cross-platform, Python-agnostic binary package manager. It | |
827 | is the package manager used by Anaconda installations, but it may be used for | |
828 | other systems as well. Conda makes environments first-class citizens, making | |
829 | it easy to create independent environments even for C libraries. Conda is | |
830 | written entirely in Python."))) | |
58a308e0 RJ |
831 | |
832 | (define-public gwl | |
833 | (package | |
834 | (name "gwl") | |
fb6ca493 | 835 | (version "0.1.1") |
58a308e0 RJ |
836 | (source (origin |
837 | (method url-fetch) | |
838 | (uri (string-append "https://www.guixwl.org/releases/gwl-" | |
839 | version ".tar.gz")) | |
840 | (sha256 | |
841 | (base32 | |
fb6ca493 | 842 | "06pm967mq1wyggx7l0nfapw5s0k5qc5r9lawk2v3db868br779a7")))) |
58a308e0 RJ |
843 | (build-system gnu-build-system) |
844 | (native-inputs | |
845 | `(("autoconf" ,autoconf) | |
846 | ("automake" ,automake) | |
847 | ("pkg-config" ,pkg-config))) | |
848 | (inputs | |
849 | `(("guile" ,guile-2.2))) | |
850 | (propagated-inputs | |
851 | `(("guix" ,guix) | |
852 | ("guile-commonmark" ,guile-commonmark))) | |
853 | (home-page "https://www.guixwl.org") | |
854 | (synopsis "Workflow management extension for GNU Guix") | |
855 | (description "This project provides two subcommands to GNU Guix and | |
856 | introduces two record types that provide a workflow management extension built | |
857 | on top of GNU Guix.") | |
858 | ;; The Scheme modules in guix/ and gnu/ are licensed GPL3+, | |
859 | ;; the web interface modules in gwl/ are licensed AGPL3+, | |
860 | ;; and the fonts included in this package are licensed OFL1.1. | |
7ed6343f | 861 | (license (list license:gpl3+ license:agpl3+ license:silofl1.1)))) |
98a11b7f TGR |
862 | |
863 | (define-public gcab | |
864 | (package | |
865 | (name "gcab") | |
63f931cf | 866 | (version "1.1") |
98a11b7f TGR |
867 | (source (origin |
868 | (method url-fetch) | |
869 | (uri (string-append "mirror://gnome/sources/" name "/" | |
870 | version "/" name "-" version ".tar.xz")) | |
871 | (sha256 | |
872 | (base32 | |
63f931cf TGR |
873 | "0l19sr6pg0cfcddmi5n79d08mjjbhn427ip5jlsy9zddq9r24aqr")) |
874 | ;; gcab 1.1 has a hard dependency on git — even when building | |
875 | ;; from a tarball. Remove it early so ‘guix environment gcab’ | |
876 | ;; can actually build what ‘guix build --source gcab’ returns. | |
877 | (modules '((guix build utils))) | |
878 | (snippet | |
879 | '(begin | |
880 | (substitute* "meson.build" | |
881 | (("git_version = .*$") "git_version = []\n")) | |
882 | #t)))) | |
44118720 | 883 | (build-system meson-build-system) |
98a11b7f | 884 | (native-inputs |
44118720 TGR |
885 | `(("glib:bin" ,glib "bin") ; for glib-mkenums |
886 | ("intltool" ,intltool) | |
887 | ("pkg-config" ,pkg-config) | |
888 | ("vala" ,vala))) | |
98a11b7f TGR |
889 | (inputs |
890 | `(("glib" ,glib) | |
891 | ("zlib" ,zlib))) | |
44118720 TGR |
892 | (arguments |
893 | `(#:configure-flags | |
894 | ;; XXX This ‘documentation’ is for developers, and fails informatively: | |
895 | ;; Error in gtkdoc helper script: 'gtkdoc-mkhtml' failed with status 5 | |
896 | (list "-Ddocs=false" | |
897 | "-Dintrospection=false"))) | |
98a11b7f TGR |
898 | (home-page "https://wiki.gnome.org/msitools") ; no dedicated home page |
899 | (synopsis "Microsoft Cabinet file manipulation library") | |
900 | (description | |
901 | "The libgcab library provides GObject functions to read, write, and modify | |
902 | Microsoft cabinet (.@dfn{CAB}) files.") | |
903 | (license (list license:gpl2+ ; tests/testsuite.at | |
904 | license:lgpl2.1+)))) ; the rest | |
cb390925 TGR |
905 | |
906 | (define-public msitools | |
907 | (package | |
908 | (name "msitools") | |
729a9722 | 909 | (version "0.98") |
cb390925 TGR |
910 | (source (origin |
911 | (method url-fetch) | |
912 | (uri (string-append "mirror://gnome/sources/" name "/" | |
913 | version "/" name "-" version ".tar.xz")) | |
914 | (sha256 | |
915 | (base32 | |
729a9722 | 916 | "19wb3n3nwkpc6bjr0q3f1znaxsfaqgjbdxxnbx8ic8bb5b49hwac")))) |
cb390925 TGR |
917 | (build-system gnu-build-system) |
918 | (native-inputs | |
919 | `(("pkg-config" ,pkg-config))) | |
920 | (inputs | |
921 | `(("gcab" ,gcab) | |
922 | ("glib" ,glib) | |
923 | ("libgsf" ,libgsf) | |
924 | ("libxml2" ,libxml2) | |
925 | ("uuid" ,util-linux))) | |
926 | (home-page "https://wiki.gnome.org/msitools") | |
927 | (synopsis "Windows Installer file manipulation tool") | |
928 | (description | |
929 | "msitools is a collection of command-line tools to inspect, extract, build, | |
930 | and sign Windows@tie{}Installer (.@dfn{MSI}) files. It aims to be a solution | |
931 | for packaging and deployment of cross-compiled Windows applications.") | |
932 | (license license:lgpl2.1+))) | |
3d391309 SB |
933 | |
934 | (define-public libostree | |
935 | (package | |
936 | (name "libostree") | |
83d4da12 | 937 | (version "2018.9.1") |
3d391309 SB |
938 | (source (origin |
939 | (method url-fetch) | |
940 | (uri (string-append | |
941 | "https://github.com/ostreedev/ostree/releases/download/v" | |
83d4da12 | 942 | (version-major+minor version) "/libostree-" version ".tar.xz")) |
3d391309 SB |
943 | (sha256 |
944 | (base32 | |
83d4da12 | 945 | "01mygpkbl9sk2vr3hjbpih6qlg8lwx0q5lklm09f7jfwfpnwyqzj")))) |
3d391309 SB |
946 | (build-system gnu-build-system) |
947 | (arguments | |
948 | '(#:phases | |
949 | (modify-phases %standard-phases | |
950 | (add-before 'check 'pre-check | |
951 | (lambda _ | |
952 | ;; Don't try to use the non-existing '/var/tmp' as test | |
953 | ;; directory. | |
954 | (setenv "TEST_TMPDIR" (getenv "TMPDIR")) | |
955 | #t))) | |
956 | ;; XXX: fails with: | |
957 | ;; tap-driver.sh: internal error getting exit status | |
958 | ;; tap-driver.sh: fatal: I/O or internal error | |
959 | #:tests? #f)) | |
960 | (native-inputs | |
961 | `(("attr" ,attr) ; for tests | |
962 | ("bison" ,bison) | |
963 | ("glib:bin" ,glib "bin") ; for 'glib-mkenums' | |
964 | ("gobject-introspection" ,gobject-introspection) | |
965 | ("pkg-config" ,pkg-config) | |
966 | ("xsltproc" ,libxslt))) | |
967 | (inputs | |
968 | `(("avahi" ,avahi) | |
969 | ("docbook-xml" ,docbook-xml-4.2) | |
970 | ("docbook-xsl" ,docbook-xsl) | |
971 | ("e2fsprogs" ,e2fsprogs) | |
972 | ("fuse" ,fuse) | |
973 | ("glib" ,glib) | |
974 | ("gpgme" ,gpgme) | |
975 | ("libarchive" ,libarchive) | |
976 | ("libsoup" ,libsoup) | |
977 | ("nettle" ,nettle) ; required by 'libarchive.la' | |
978 | ("util-linux" ,util-linux))) | |
979 | (home-page "https://ostree.readthedocs.io/en/latest/") | |
980 | (synopsis "Operating system and container binary deployment and upgrades") | |
981 | (description | |
982 | "@code{libostree} is both a shared library and suite of command line | |
983 | tools that combines a \"git-like\" model for committing and downloading | |
984 | bootable filesystem trees, along with a layer for deploying them and managing | |
985 | the bootloader configuration.") | |
986 | (license license:lgpl2.0+))) |