You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

57 lines
2.3 KiB

  1. ;;; GNU Guix --- Functional package management for GNU
  2. ;;; Copyright © 2013, 2014, 2015 Ludovic Courtès <ludo@gnu.org>
  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. ;;; Check whether important binaries are available at hydra.gnu.org.
  20. ;;;
  21. (use-modules (guix store)
  22. (guix packages)
  23. (guix derivations)
  24. (gnu packages emacs)
  25. (gnu packages make-bootstrap)
  26. (srfi srfi-1)
  27. (srfi srfi-26))
  28. (with-store store
  29. (parameterize ((%graft? #f))
  30. (let* ((native (append-map (lambda (system)
  31. (map (cut package-derivation store <> system)
  32. (list %bootstrap-tarballs emacs)))
  33. %supported-systems))
  34. (cross (map (cut package-cross-derivation store
  35. %bootstrap-tarballs <>)
  36. '("mips64el-linux-gnuabi64")))
  37. (total (append native cross)))
  38. (define (warn item system)
  39. (format (current-error-port) "~a (~a) is not substitutable~%"
  40. item system)
  41. #f)
  42. (set-build-options store #:use-substitutes? #t)
  43. (let* ((substitutable? (substitution-oracle store total))
  44. (result (every (lambda (drv)
  45. (let ((out (derivation->output-path drv)))
  46. (or (substitutable? out)
  47. (warn out (derivation-system drv)))))
  48. total)))
  49. (when result
  50. (format (current-error-port) "~a packages found substitutable~%"
  51. (length total)))
  52. (exit result)))))