lint 620 B

12345678910111213141516171819202122232425
  1. #!/usr/bin/env guile
  2. !#
  3. (use-modules (gnu packages))
  4. (use-modules (guix diagnostics))
  5. (use-modules (guix lint))
  6. (use-modules (guix scripts lint))
  7. (use-modules (guix packages))
  8. (use-modules (guix store))
  9. (use-modules (guix ui))
  10. (use-modules (srfi srfi-1))
  11. (use-modules (srfi srfi-26))
  12. (define (guix-package? p)
  13. (let ((lf (location-file (package-location p))))
  14. (any (cut string-prefix? <> lf) '("gnu/" "guix/"))))
  15. (with-error-handling
  16. (with-store store
  17. (fold-packages
  18. (lambda (package _)
  19. (run-checkers package %local-checkers #:store store))
  20. #f
  21. #:select? (negate guix-package?))))