Subject: [PATCH] Add emacs-build-farm

From: Alex Kost <[email-masked]>
Date: Sun, 26 Aug 2018 14:33:16 +0300

Hello,

This emacs package provides an interface for Hydra and Cuirass build
farms.  AFAICT it supports everything that Cuirass and Hydra APIs
currently provide.

It is a replacement for the old 'guix-hydra-…' stuff from 'emacs-guix'
package (which will be removed in next Emacs-Guix release).

I'm going to make the announcement for it on guix-devel list after this
package will be applied to the guix tree, thanks.

>From dc933a2cb96b562c16580b6fb8d79e55f3535e92 Mon Sep 17 00:00:00 2001
From: Alex Kost <[email-masked]>
Date: Sun, 26 Aug 2018 14:27:33 +0300
Subject: [PATCH] gnu: Add emacs-build-farm.

* gnu/packages/emacs.scm (emacs-build-farm): New variable.
---
 gnu/packages/emacs.scm | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm
index 20d5597f5..479bcddaa 100644
--- a/gnu/packages/emacs.scm
+++ b/gnu/packages/emacs.scm
@@ -1710,6 +1710,32 @@ management tasks from Emacs.  To begin with, run @code{M-x guix-about} or
 @code{M-x guix-help} command.")
     (license license:gpl3+)))
 
+(define-public emacs-build-farm
+  (package
+    (name "emacs-build-farm")
+    (version "0.2")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://gitlab.com/alezost-emacs/build-farm")
+                    (commit "e2db66d5f6b381c8e21a5a7b95eef91e5fca6a20")))
+              (file-name (string-append name "-" version "-checkout"))
+              (sha256
+               (base32
+                "1q65ja9c52wjfbb7z16jpq5hnxv0rjg9gvs0xna2fs3phzl2lm93"))))
+    (build-system emacs-build-system)
+    (propagated-inputs
+     `(("bui" ,emacs-bui)
+       ("magit-popup" ,emacs-magit-popup)))
+    (home-page "https://gitlab.com/alezost-emacs/build-farm")
+    (synopsis "Emacs interface for Hydra and Cuirass build farms")
+    (description
+     "This Emacs package provides an interface for Hydra and
+Cuirass (build farms used by Nix and Guix).  It allows you to look at
+various data related to the build farm projects, jobsets, builds and
+evaluations.  The entry point is @code{M-x build-farm} command.")
+    (license license:gpl3+)))
+
 (define-public emacs-d-mode
   (package
     (name "emacs-d-mode")
-- 
2.18.0