Commit | Line | Data |
---|---|---|
56fbf262 | 1 | ;;; GNU Guix --- Functional package management for GNU |
58caebf0 | 2 | ;;; Copyright © 2013, 2014, 2015 Ludovic Courtès <ludo@gnu.org> |
56fbf262 LC |
3 | ;;; |
4 | ;;; This file is part of GNU Guix. | |
5 | ;;; | |
6 | ;;; GNU Guix is free software; you can redistribute it and/or modify it | |
7 | ;;; under the terms of the GNU General Public License as published by | |
8 | ;;; the Free Software Foundation; either version 3 of the License, or (at | |
9 | ;;; your option) any later version. | |
10 | ;;; | |
11 | ;;; GNU Guix is distributed in the hope that it will be useful, but | |
12 | ;;; WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 | ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
14 | ;;; GNU General Public License for more details. | |
15 | ;;; | |
16 | ;;; You should have received a copy of the GNU General Public License | |
17 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. | |
18 | ||
19 | ;;; | |
20 | ;;; Check whether important binaries are available at hydra.gnu.org. | |
21 | ;;; | |
22 | ||
23 | (use-modules (guix store) | |
24 | (guix packages) | |
25 | (guix derivations) | |
26 | (gnu packages emacs) | |
27 | (gnu packages make-bootstrap) | |
28 | (srfi srfi-1) | |
29 | (srfi srfi-26)) | |
30 | ||
619c9522 | 31 | (with-store store |
43da8f01 LC |
32 | (parameterize ((%graft? #f)) |
33 | (let* ((native (append-map (lambda (system) | |
34 | (map (cut package-derivation store <> system) | |
35 | (list %bootstrap-tarballs emacs))) | |
78bed82d | 36 | %hydra-supported-systems)) |
43da8f01 LC |
37 | (cross (map (cut package-cross-derivation store |
38 | %bootstrap-tarballs <>) | |
39 | '("mips64el-linux-gnuabi64"))) | |
40 | (total (append native cross))) | |
41 | (define (warn item system) | |
42 | (format (current-error-port) "~a (~a) is not substitutable~%" | |
43 | item system) | |
44 | #f) | |
56fbf262 | 45 | |
43da8f01 LC |
46 | (set-build-options store #:use-substitutes? #t) |
47 | (let* ((substitutable? (substitution-oracle store total)) | |
48 | (result (every (lambda (drv) | |
49 | (let ((out (derivation->output-path drv))) | |
50 | (or (substitutable? out) | |
51 | (warn out (derivation-system drv))))) | |
52 | total))) | |
53 | (when result | |
54 | (format (current-error-port) "~a packages found substitutable~%" | |
55 | (length total))) | |
56 | (exit result))))) |